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 

Help? How to make this loop for length of time (ex. 4 hours)

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



Joined: 09 Jul 2007
Posts: 5

PostPosted: Wed Jul 11, 2007 1:55 pm    Post subject: Help? How to make this loop for length of time (ex. 4 hours) Reply with quote

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



Joined: 15 Mar 2007
Posts: 70

PostPosted: Wed Jul 11, 2007 2:15 pm    Post subject: Reply with quote

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



Joined: 09 Jul 2007
Posts: 5

PostPosted: Wed Jul 11, 2007 2:40 pm    Post subject: Reply with quote

Thanks alot.

I'm new to the AHK Scripting...

Looks like that would work.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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