View previous topic :: View next topic |
Author |
Message |
Runarius Senior Member
Joined: 19 Nov 2006 Posts: 124
|
Posted: Tue Feb 13, 2007 10:03 pm Post subject: Getting the script to wait a second? |
|
|
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 |
|
 |
salling Site Admin
Joined: 27 Jul 2004 Posts: 7498 Location: Stockholm, Sweden
|
Posted: Tue Feb 13, 2007 11:28 pm Post subject: Re: Getting the script to wait a second? |
|
|
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 |
|
 |
Runarius Senior Member
Joined: 19 Nov 2006 Posts: 124
|
Posted: Wed Feb 14, 2007 4:05 pm Post subject: |
|
|
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 |
|
 |
salling Site Admin
Joined: 27 Jul 2004 Posts: 7498 Location: Stockholm, Sweden
|
|
Back to top |
|
 |
Runarius Senior Member
Joined: 19 Nov 2006 Posts: 124
|
Posted: Wed Feb 14, 2007 11:58 pm Post subject: |
|
|
hmmm...
WScript.Sleep(100);
appearantly, this does nothing... |
|
Back to top |
|
 |
|