 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
chafeking Guest
|
Posted: Tue Jul 21, 2009 8:20 am Post subject: can someone make me a simple infinite loop macro please |
|
|
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
|
Posted: Tue Jul 21, 2009 12:48 pm Post subject: |
|
|
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 |
|
 |
Klaus
Joined: 12 May 2005 Posts: 325 Location: Münster, Germany
|
Posted: Tue Jul 21, 2009 12:50 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|