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 

Setting mouse click instead of key?

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





PostPosted: Mon Apr 17, 2006 11:21 pm    Post subject: Setting mouse click instead of key? Reply with quote

I want to start my macro by doing a mouse click. For example, with a key (in this case Ctrl) I do:

Code:
*Ctrl::


I tried replacing it with Click and MouseClick, left - like this:

Code:
*Click::


...but it doesn't work? Any help? Please! Smile
Back to top
enrica



Joined: 21 Mar 2005
Posts: 117
Location: Bahia, Brasil

PostPosted: Tue Apr 18, 2006 1:06 am    Post subject: Reply with quote

Try this:
Code:
LButton::
MsgBox, wow!
Return

or:
Code:
~LButton::
MsgBox, wow!
Return

_________________
65.6E.72.69.63.61. (My hovercraft is full of eels)
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Apr 18, 2006 9:26 am    Post subject: Reply with quote

Thanks, now what I wish it to do is, when I hold-click with my left mouse button, for it to keep clicking repeatadly until I let go.

I tried this:
Code:
LButton::
Click
Loop


No luck?
Back to top
enrica



Joined: 21 Mar 2005
Posts: 117
Location: Bahia, Brasil

PostPosted: Tue Apr 18, 2006 10:04 am    Post subject: Reply with quote

I'm not sure to understand..
Try this:
Code:
LButton::
Loop
{
Sleep, 10
GetKeyState, state, LButton, P
if state = U 
break
MouseClick, left,,,
}
return

_________________
65.6E.72.69.63.61. (My hovercraft is full of eels)
Back to top
View user's profile Send private message
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