AutoHotkey Community

It is currently May 26th, 2012, 6:38 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Control of Flow question
PostPosted: June 16th, 2009, 2:37 am 
Offline

Joined: April 13th, 2009, 3:15 am
Posts: 101
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2009, 2:52 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 16th, 2009, 3:13 am 
Offline

Joined: April 13th, 2009, 3:15 am
Posts: 101
okay that works, ty. Learning everyday :)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: rbrtryn and 64 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group