AutoHotkey Community

It is currently May 26th, 2012, 11:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Help me code this macro
PostPosted: November 14th, 2009, 2:27 am 
Offline

Joined: November 14th, 2009, 2:23 am
Posts: 3
; What I wanted to happen is for the mouse to stay on right click on that coordinates 428,124 and for the keyboard to press 1 then right click and then space (each 1 second interval), then pressing 2, right click, space again loops until i press the escape key. HELP!!
^!c::
Send 1
click right 482,124
Send {Space}
Send 2
click right 482,124
Send {Space}
Send 3
click right 482,124
Send {Space}
Send 4
click right 482,124
Send {Space}

return

[Title edited. Please write descriptive titles for your topics. ~jaco0646]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2009, 2:31 am 
?
Code:
^!c::
loop
{
Send 1
click right 482,124
Send {Space}
Send 2
click right 482,124
Send {Space}
Send 3
click right 482,124
Send {Space}
Send 4
click right 482,124
Send {Space}
}
return

esc::exitapp ; or pause here


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2009, 2:32 am 
o yes, put sleep 1000 in between the lines that u want to rest for 1 sec


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2009, 2:32 am 
Offline

Joined: February 17th, 2008, 7:09 am
Posts: 536
Read up on Sleep and if. Probably try having a global variable stating if it's on/off with a hotkey to turn it off that way, if the global variable says it's off to return.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2009, 2:35 am 
Offline

Joined: November 14th, 2009, 2:23 am
Posts: 3
Anonymous wrote:
o yes, put sleep 1000 in between the lines that u want to rest for 1 sec

wow thanks.. thank you guys, I will surely try this and I really appreciate it :)
guest and rtcvb32 :D :D


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2009, 2:42 am 
Offline

Joined: October 22nd, 2009, 10:26 pm
Posts: 95
rtcvb32 wrote:
Read up on Sleep


all so look up the nap

n::
Nap,1000 = no s[leep
, if sleep= false
take-1 nap
,setAlarm,100
pushButton,snooze
Send


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 14th, 2009, 2:50 am 
Offline

Joined: November 14th, 2009, 2:23 am
Posts: 3
nostroke wrote:
rtcvb32 wrote:
Read up on Sleep


all so look up the nap

n::
Nap,1000 = no s[leep
, if sleep= false
take-1 nap
,setAlarm,100
pushButton,snooze
Send


nice joke but theres no such thing as nap.. link below is the real deal
http://www.autohotkey.com/docs/commands/Sleep.htm :roll:

heres the code I will try
^!c::
loop
{
Send 1
click right 482,124
Send {Space}
Sleep, 1000
Send 2
click right 482,124
Send {Space}
Sleep, 1000
Send 3
click right 482,124
Send {Space}
Sleep, 1000
Send 4
click right 482,124
Send {Space}
Sleep, 1000
}
return

esc::exitapp ;
_______________________________
Edit: Ive tried this code but its not running when i press F5 on the Scite4autohotkey software HELP!!! :( :(

_________
this worked
http://www.autohotkey.net/paste/jj514j


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Cerberus, joetazz, JSLover, Maestr0, rbrtryn, Tipsy3000 and 60 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