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 

I need help with a macro that continues to press Z.

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Gaaplkaz
Guest





PostPosted: Fri Feb 23, 2007 12:48 am    Post subject: I need help with a macro that continues to press Z. Reply with quote

I've tried to get this working, but I still don't see how it's done. Instead of frustrating myself I've decided to ask around here. So, How would that be done?

Just a simple macro used to hold down or press Z repeatedly.
Back to top
NiJo



Joined: 12 Nov 2005
Posts: 73

PostPosted: Fri Feb 23, 2007 1:21 am    Post subject: Reply with quote

Stole it from a topic just down this one...
Code:
^z::   
Loop
{
   Send {z}
   GetKeyState, LoopBreakCheck, LCtrl, P
   if LoopBreakCheck = D
      Break
}
return


CTRL+Z to repeat indefinitely Z, until you press LeftCtrl.

If you want to keep it down:
Code:
^z::send {z down}
LCtrl::send {z up}

CTRL+Z to put it down, Ctrl to let go...
Back to top
View user's profile Send private message
Display posts from previous:   
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