AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Control of Flow question

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
lbrtdy



Joined: 13 Apr 2009
Posts: 101

PostPosted: Tue Jun 16, 2009 1:37 am    Post subject: Control of Flow question Reply with quote

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
View user's profile Send private message
Z_Gecko
Guest





PostPosted: Tue Jun 16, 2009 1:52 am    Post subject: Reply with quote

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

PostPosted: Tue Jun 16, 2009 2:13 am    Post subject: Reply with quote

okay that works, ty. Learning everyday Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group