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 

Help me code this macro

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
nice90



Joined: 14 Nov 2009
Posts: 3

PostPosted: Sat Nov 14, 2009 1:27 am    Post subject: Help me code this macro Reply with quote

; 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
View user's profile Send private message Yahoo Messenger
Guest






PostPosted: Sat Nov 14, 2009 1:31 am    Post subject: Reply with quote

?
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






PostPosted: Sat Nov 14, 2009 1:32 am    Post subject: Reply with quote

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

PostPosted: Sat Nov 14, 2009 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
nice90



Joined: 14 Nov 2009
Posts: 3

PostPosted: Sat Nov 14, 2009 1:35 am    Post subject: Reply with quote

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 Smile
guest and rtcvb32 Very Happy Very Happy
Back to top
View user's profile Send private message Yahoo Messenger
nostroke



Joined: 22 Oct 2009
Posts: 93

PostPosted: Sat Nov 14, 2009 1:42 am    Post subject: Reply with quote

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
View user's profile Send private message
nice90



Joined: 14 Nov 2009
Posts: 3

PostPosted: Sat Nov 14, 2009 1:50 am    Post subject: Reply with quote

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 Rolling Eyes

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!!! Sad Sad

_________
this worked
http://www.autohotkey.net/paste/jj514j
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   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