forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help with EVLoop

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Sun Jul 10, 2005 11:12 pm    Post subject: Help with EVLoop Reply with quote

There is probably an easy way to do this but I am at a loss here. I need to have an action take place in a script im writing every 130 seconds. How can I make this happen since evloop only runs when an action has occurred? Is there a way to shell a series of functions or something similar?

WD

_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Mon Jul 11, 2005 12:48 am    Post subject: Reply with quote

Code:

  REM Place at the beginning of your script before your Evloop
  REM 0-00:02:10 == 130 seconds
  timer START,1,CTDOWN,0-00:02:10

  dialog create,Dialog,...
  dialog show

:Evloop
  wait event
  %E = @event()
  goto %E

:Timer1CTDOWN
  REM This is where you do any validation that you need, etc.
  Info Timer expired!
  goto Evloop

:CLOSE
  timer stop,1
  exit


Maybe this helps?...

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Tue Jul 12, 2005 3:53 pm    Post subject: Thanks Reply with quote

I just checked that that did the trick. I knew it was something similar to that because I have seen that in others code or similar variations but I could'nt remember how to do it. Program is now functioning properly. Awesome!
_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Jul 12, 2005 4:01 pm    Post subject: Reply with quote

You're welcome Kevin. Was glad to assist. Smile
_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Tue Jul 12, 2005 9:18 pm    Post subject: Oh no Reply with quote

I wanted the timer to run every 10 seconds or so but it seems to only run the first time that the program is run. Then it never runs the timer again. So basically regardless of whatever else is going on I want it to run every 5 seconds. Is that possible? I thought this would work but like I said it does it only once. Could I start the timer inside of EvLoop?
_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Jul 12, 2005 9:41 pm    Post subject: Reply with quote

No. Because any event that is generated, especially at less that 5 second
intervals, will prolly cause an error because the timer is already running.

I would restart the timer at the end of your Timer1CTDOWN event label,
after doing your other processing but before returning to the Evloop.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
webdaddy
Contributor
Contributor


Joined: 14 Nov 2004
Posts: 151
Location: Raleigh NC

PostPosted: Wed Jul 13, 2005 1:42 am    Post subject: Nice Reply with quote

Thats exactly what I did 2 seconds after I posted. I basically stopped the timer after the timer1 code and then restarted it within evloop.
Thanks again for all your help. Your software rocks by the way.

_________________
K Wetzel
Programming - Technology - Communications
"The Home of the SLC Security Console"
SLC now available for Linux...
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Wed Jul 13, 2005 2:16 am    Post subject: Reply with quote

webdaddy wrote:
Thanks again for all your help.

Your welcome.

webdaddy wrote:
Your software rocks by the way.

Thanks! Cool Glad all my hard work isn't in vain. Big Smile

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group