| View previous topic :: View next topic |
| Author |
Message |
Staticv2
Joined: 10 Nov 2009 Posts: 2
|
Posted: Tue Nov 10, 2009 4:48 pm Post subject: Mouse macro help |
|
|
Hello, I am new with macros.
I want a macro
If I click once on the right mouse button keep held down
and if I click right mouse agian button it will releas to normal.
can someone help me or can someone creat it? |
|
| Back to top |
|
 |
john tuomi
Joined: 22 May 2006 Posts: 116
|
Posted: Tue Nov 10, 2009 4:58 pm Post subject: |
|
|
| Code: | lbutton::
send,{lbutton down}
return
rbutton::
exitapp |
|
|
| Back to top |
|
 |
Carnifex
Joined: 10 Nov 2009 Posts: 9
|
Posted: Tue Nov 10, 2009 5:45 pm Post subject: |
|
|
| john tuomi wrote: | | Code: | lbutton::
send,{lbutton down}
return
rbutton::
exitapp |
|
actually it's
| Code: | lbutton::
send,{lbutton down}
return
rbutton::
send,{lbutton up}
return |
|
|
| Back to top |
|
 |
john tuomi
Joined: 22 May 2006 Posts: 116
|
Posted: Tue Nov 10, 2009 6:09 pm Post subject: |
|
|
| actually, no. The Lbutton is in the down position, effectively blocking the Rbutton from functioning properly. |
|
| Back to top |
|
 |
MasterFocus
Joined: 08 Apr 2009 Posts: 882 Location: Rio de Janeiro - RJ - Brasil
|
Posted: Wed Nov 11, 2009 12:02 am Post subject: Re: Mouse macro help |
|
|
| Staticv2 wrote: | | If I click once on the right mouse button ... |
| Code: | | $RButton:: Send, % "{RButton " ( (var:=!var) ? "Down" : "Up") "}" |
Tested. _________________
Antonio França
aka MasterFocus aka Tunis
+ My AHK stuff: ~MasterFocus
+ AHK @ irc.freenode.net: #ahk
Contact: PM only ! |
|
| Back to top |
|
 |
Staticv2
Joined: 10 Nov 2009 Posts: 2
|
Posted: Wed Nov 11, 2009 11:17 pm Post subject: |
|
|
| thaks all I will test it. |
|
| Back to top |
|
 |
|