 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
jjingoldsby
Joined: 09 Jul 2007 Posts: 5
|
Posted: Wed Jul 11, 2007 1:55 pm Post subject: Help? How to make this loop for length of time (ex. 4 hours) |
|
|
#Persistent
mX = 123
mY = 123
SetTimer, Click, 300000
SetTimer, Send, 240000
Click:
Click right %mX%,%mY%
return
Send:
Send {Space}
return
; Would the following line at the end of the script make the script end after 4 hours?:
Sleep 14400000
ExitApp
or
SetTimer, ExitApp, 14400000 |
|
| Back to top |
|
 |
mwharri
Joined: 15 Mar 2007 Posts: 70
|
Posted: Wed Jul 11, 2007 2:15 pm Post subject: |
|
|
| Code: |
#Persistent
mX = 123
mY = 123
SetTimer, Click, 300000
SetTimer, Send, 240000
SetTimer, End, 14400000
Click:
Click right %mX%,%mY%
return
Send:
Send {Space}
return
End:
msgbox ENDING!
ExitApp
|
Not Tested.....Don't have the time
Edit: Somehow, I managed to overlook this in your post...sorry
| Quote: | Sleep 14400000
ExitApp
or
SetTimer, ExitApp, 14400000 |
|
|
| Back to top |
|
 |
jjingoldsby
Joined: 09 Jul 2007 Posts: 5
|
Posted: Wed Jul 11, 2007 2:40 pm Post subject: |
|
|
Thanks alot.
I'm new to the AHK Scripting...
Looks like that would work. |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|