AutoHotkey Community

It is currently May 26th, 2012, 8:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: July 21st, 2009, 9:20 am 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 21st, 2009, 1:48 pm 
Offline

Joined: May 17th, 2007, 6:03 pm
Posts: 391
Location: Titan
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 February 11th, 2011, 10:17 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 21st, 2009, 1:50 pm 
Offline

Joined: May 12th, 2005, 8:20 am
Posts: 331
Location: Münster, Germany
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


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: BrandonHotkey, Google [Bot], SifJar, SKAN, StepO, Yahoo [Bot] 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