FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Getting the script to wait a second?

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows
View previous topic :: View next topic  
Author Message
Runarius
Senior Member


Joined: 19 Nov 2006
Posts: 124

PostPosted: Tue Feb 13, 2007 10:03 pm    Post subject: Getting the script to wait a second? Reply with quote

Hi, I am making a little script for typing, mobile style. And, I need a little command that will make the Jscript wait a second or so before moving on. Anybody who knows what this command might be?
Back to top
View user's profile Send private message
salling
Site Admin


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

PostPosted: Tue Feb 13, 2007 11:28 pm    Post subject: Re: Getting the script to wait a second? Reply with quote

Hi,

I do not recommend you wait, as this will keep the software blocked during the wait, but if you really want to do this I'll try to google this for you.

Best.
--
Jonas

[quote="Runarius"]Hi, I am making a little script for typing, mobile style. And, I need a little command that will make the Jscript wait a second or so before moving on. Anybody who knows what this command might be?[/quote]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Runarius
Senior Member


Joined: 19 Nov 2006
Posts: 124

PostPosted: Wed Feb 14, 2007 4:05 pm    Post subject: Reply with quote

A timer would be great though... if I could pause it for just a few milliseconds at a time, it would be great.


function countDown();
wait 1ms;
timer+1;
endFunction

if timer > 1000
Showmessage( "Success");
else
countDown
endif
Back to top
View user's profile Send private message
salling
Site Admin


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

PostPosted: Wed Feb 14, 2007 4:12 pm    Post subject: Reply with quote

Try this:

http://www.google.com/search?hl=en&safe=off&client=safari&rls=en&q=jscript+wscript+sleep+site%3Amicrosoft.com&btnG=Search

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Runarius
Senior Member


Joined: 19 Nov 2006
Posts: 124

PostPosted: Wed Feb 14, 2007 11:58 pm    Post subject: Reply with quote

hmmm...

WScript.Sleep(100);

appearantly, this does nothing...
Back to top
View user's profile Send private message
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