So Basically I need help porting this to AHK as my mouse side button died.
This was from my X-mouse Button
{CAPSLOCKOFF}{WAITMS:10}{CAPSLOCK}{RMBD}
So basically the code send capslock off state then press down capslock (capslock On) + right click mouse down for 60 second
then repeat (loop) again.
can you also bind it to hotkey LCTRL (on/off)
Thanks.
New to AHK (from xmouse button)
Re: New to AHK (from xmouse button)
Code: Select all
LCtrl::
Loop, 2 {
SetCapsLockState, Off
Sleep, 10
SetCapsLockState, On
Click, R D
Sleep, 60000
Click, R U ; Delete if not needed
}
Return
Re: New to AHK (from xmouse button)
cant get it to work. It does toggle capslock state on and off and right click.
Im looking for Holding CapsLock Down + Holding Down Right Mouse button.
Im looking for Holding CapsLock Down + Holding Down Right Mouse button.
Re: New to AHK (from xmouse button)
You could try Send {CapsLock down}. Also see https://www.autohotkey.com/docs/commands/SetStoreCapslockMode.htm. You can remove the click up as already noted. See KeyHistory to understand what is happening with the keys.