#1
|
|||
|
|||
simple ahk request
would like to bind right and left mouseclicks to keyboard keys. that way i can hover the mouse where i want and use my other hand to press a key on the keyboard to right or left click. can this be done?
|
#2
|
|||
|
|||
Re: simple ahk request
l and r can be changed to any key you want. The documentation on Hotkey in the AutoHotkey help can help if you want to do things with shift, alt, etc.
<font class="small">Code:</font><hr /><pre>l::send, {LButton} r::send, {RButton}</pre><hr /> |
#3
|
|||
|
|||
Re: simple ahk request
Sure, this should work
(change F1, F2 and F3 to whatever you prefer) KeyboardClick.ahk <font class="small">Code:</font><hr /><pre> #SingleInstance, Force SendMode Input #NoEnv F1:: ; Left click Click return F2:: ; Double Left click Click 2 return F3:: ; Right click Click right return </pre><hr /> many examples here http://www.autohotkey.com/docs/commands/Click.htm dave. EDIT: damn, I type slow [img]/images/graemlins/smile.gif[/img] |
#4
|
|||
|
|||
Re: simple ahk request
Don't feel too bad Dave, It was just the double left click that pushed you into a close second.
|
|
|