 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
lbrtdy
Joined: 13 Apr 2009 Posts: 101
|
Posted: Tue Jun 16, 2009 1:37 am Post subject: Control of Flow question |
|
|
Here is my current script:
| Code: | Loop
{
ControlSend,, 9, Pacific - MysticNuker
Sleep, 1500
ControlSend,, 1, Pacific - MysticSniper
}
Return
*esc::ExitApp
*^m::WinMinimize, ahk_class CLIENT |
But I want to add this part that only happens once every 456 seconds:
| Code: |
SetTimer, SoftGuard, 456000
SoftGuard:
Send, 8
return
|
But when I add it to the script, it stops the loop. How do I encompass both of these elements into 1 script? |
|
| Back to top |
|
 |
Z_Gecko Guest
|
Posted: Tue Jun 16, 2009 1:52 am Post subject: |
|
|
try: | Code: |
SetTimer, SoftGuard, 456000
Loop
{
ControlSend,, 9, Pacific - MysticNuker
Sleep, 1500
ControlSend,, 1, Pacific - MysticSniper
}
Return
*esc::ExitApp
*^m::WinMinimize, ahk_class CLIENT
SoftGuard:
Send, 8
return |
|
|
| Back to top |
|
 |
lbrtdy
Joined: 13 Apr 2009 Posts: 101
|
Posted: Tue Jun 16, 2009 2:13 am Post subject: |
|
|
okay that works, ty. Learning everyday  |
|
| 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
|