| View previous topic :: View next topic |
| Author |
Message |
Nick Guest
|
Posted: Mon Apr 17, 2006 11:21 pm Post subject: Setting mouse click instead of key? |
|
|
I want to start my macro by doing a mouse click. For example, with a key (in this case Ctrl) I do:
I tried replacing it with Click and MouseClick, left - like this:
...but it doesn't work? Any help? Please!  |
|
| Back to top |
|
 |
enrica
Joined: 21 Mar 2005 Posts: 117 Location: Bahia, Brasil
|
Posted: Tue Apr 18, 2006 1:06 am Post subject: |
|
|
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 |
|
 |
Guest
|
Posted: Tue Apr 18, 2006 9:26 am Post subject: |
|
|
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
|
Posted: Tue Apr 18, 2006 10:04 am Post subject: |
|
|
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 |
|
 |
|