FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Time delay in script

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
987poiuytrewq
Newbie


Joined: 25 Jun 2007
Posts: 19

PostPosted: Wed Jul 11, 2007 7:03 pm    Post subject: Time delay in script Reply with quote

Is there any way to introduce a time delay in the script. Eg to pause for x milliseconds before proceding to the next line of code? Looking at JScript for web use, I have found the method setTimeout("function", delay) and something to do with getting the current time on your PC, but they refuse to run in my scripts. Is there any way to use either of these with Salling Clicker?
Back to top
View user's profile Send private message Send e-mail
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Wed Jul 11, 2007 8:07 pm    Post subject: Re: Time delay in script Reply with quote

Not really. You could probably make your script pause for a while using some WScript construct, or by idle-looping (checking for the time at each iteration), but the Clicker call-backs really need to be handled as quickly as possible.

If you have more complex needs, a solution might be to move some of the functionality requiring delays into a separate process, keeping just the input/output presentation stuff inside the script.

Best.
--
Jonas

[quote="987poiuytrewq"]Is there any way to introduce a time delay in the script. Eg to pause for x milliseconds before proceding to the next line of code? Looking at JScript for web use, I have found the method setTimeout("function", delay) and something to do with getting the current time on your PC, but they refuse to run in my scripts. Is there any way to use either of these with Salling Clicker?[/quote]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows All times are GMT + 2 Hours
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 cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group