 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
nice90
Joined: 14 Nov 2009 Posts: 3
|
Posted: Sat Nov 14, 2009 1:27 am Post subject: Help me code this macro |
|
|
; 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] |
|
| Back to top |
|
 |
Guest
|
Posted: Sat Nov 14, 2009 1:31 am Post subject: |
|
|
?
| 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 |
|
|
| Back to top |
|
 |
Guest
|
Posted: Sat Nov 14, 2009 1:32 am Post subject: |
|
|
| o yes, put sleep 1000 in between the lines that u want to rest for 1 sec |
|
| Back to top |
|
 |
rtcvb32
Joined: 17 Feb 2008 Posts: 125
|
Posted: Sat Nov 14, 2009 1:32 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
nice90
Joined: 14 Nov 2009 Posts: 3
|
Posted: Sat Nov 14, 2009 1:35 am Post subject: |
|
|
| 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  |
|
| Back to top |
|
 |
nostroke
Joined: 22 Oct 2009 Posts: 93
|
Posted: Sat Nov 14, 2009 1:42 am Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
nice90
Joined: 14 Nov 2009 Posts: 3
|
Posted: Sat Nov 14, 2009 1:50 am Post subject: |
|
|
| 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
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 |
|
| 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
|