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 

can someone make me a simple infinite loop macro please

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





PostPosted: Tue Jul 21, 2009 8:20 am    Post subject: can someone make me a simple infinite loop macro please Reply with quote

i cant make any sense on how to do it

i need one that presses [ then 1 second later presses ] wait 2 seconds then repeats

[ and ] are my hotkeys for

[::MouseClick, left, 487, 409
]::MouseClick, left, 560, 378

any help would be appreciated
Back to top
lilalurl.T32



Joined: 17 May 2007
Posts: 391
Location: Titan

PostPosted: Tue Jul 21, 2009 12:48 pm    Post subject: Reply with quote

For wait:
have a look at the Sleep command in the help file.

If you encounter problems with looping (is Send what you are looking for?) why not directly loop the two Mouseclick, instead of looping the keypresses which will then trigger the Mouseclick?
________
Lincoln aviator specifications


Last edited by lilalurl.T32 on Fri Feb 11, 2011 9:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
Klaus



Joined: 12 May 2005
Posts: 325
Location: Münster, Germany

PostPosted: Tue Jul 21, 2009 12:50 pm    Post subject: Reply with quote

Hi, chafeking,
try something like this
Code:
; your hotkeys
[::Mouseclick, left, ...
]::Mouseclick, right, ...
; loop forever
loop
{
Send, [
Sleep, 1000
Send, ]
Sleep, 2000
}
return

Take this as a start!
Klaus
Back to top
View user's profile Send private message Send e-mail
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