| View previous topic :: View next topic |
| Author |
Message |
alexisfch
Joined: 09 Nov 2009 Posts: 92
|
Posted: Mon Dec 14, 2009 6:45 pm Post subject: Sleep and loop at same time |
|
|
I want to open explorer.exe after 30 seconds, and a loop at same time, but my script wait 30 seonds, and after that start the loop, I want to wait this 30 seconds, but run the loop during this time too.
| Code: | sleep 30000
run explorer.exe
goto, uploop
return
uploop:
Loop
{
KeyWait, up,D T13
If(ErrorLevel) {
run notepad.exe
Break
}
} |
[Deleted double post. ~jaco0646] |
|
| Back to top |
|
 |
alexisfch
Joined: 09 Nov 2009 Posts: 92
|
Posted: Mon Dec 14, 2009 7:32 pm Post subject: |
|
|
any idea??  |
|
| Back to top |
|
 |
Carcophan
Joined: 24 Dec 2008 Posts: 1308 Location: :noitacoL
|
Posted: Mon Dec 14, 2009 8:13 pm Post subject: |
|
|
| Quote: | | I want to open explorer.exe after 30 seconds, and a loop at same time, but my script wait 30 seonds, and after that start the loop, I want to wait this 30 seconds, but run the loop during this time too. |
Can you try rewording your question. It seems recursive. |
|
| Back to top |
|
 |
alexisfch
Joined: 09 Nov 2009 Posts: 92
|
Posted: Mon Dec 14, 2009 8:56 pm Post subject: |
|
|
| Carcophan wrote: | | Quote: | | I want to open explorer.exe after 30 seconds, and a loop at same time, but my script wait 30 seonds, and after that start the loop, I want to wait this 30 seconds, but run the loop during this time too. |
Can you try rewording your question. It seems recursive. |
I just need that during the sleep order (30sec) run the loop during all these 30 sec too, no after these 30 sec. |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
|
| Back to top |
|
 |
alexisfch
Joined: 09 Nov 2009 Posts: 92
|
Posted: Mon Dec 14, 2009 10:51 pm Post subject: |
|
|
it doesn't work  |
|
| Back to top |
|
 |
HotKeyIt
Joined: 18 Jun 2008 Posts: 4652 Location: AHK Forum
|
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 1002 Location: Germany - Deutschland
|
Posted: Tue Dec 15, 2009 9:55 am Post subject: |
|
|
| use Settimer to run the loop. |
|
| Back to top |
|
 |
|