Page 1 of 1

Script question, halp!

Posted: 29 Jun 2020, 08:42
by Kaisor124
I want to bind right mouse button to do action: 1x left mouse click + "ctrl+left arrow". Also, make F12 toggle on and off autohotkey?

Too low IQ to figure it on my own, 'd appreciate some help here. Thanks.

Re: Script question, halp!

Posted: 29 Jun 2020, 16:47
by Learning one
Try this:

Code: Select all

RButton::Send, {LButton}^{Left} 

F12::
Suspend
Pause,,1
return

Re: Script question, halp!

Posted: 30 Jun 2020, 04:00
by Kaisor124
Thank you kind sir!

Although you missed to implement the ctrl key. Ctrl needs to be held down as left arrow is being pressed; like the "alt+F4" command.

Re: Script question, halp!  Topic is solved

Posted: 30 Jun 2020, 11:44
by Learning one
In code above ( RButton::Send, {LButton}^{Left} ), ^ symbol represents Ctrl key, but if it doesn't work as expected, try this: RButton::Send, {LButton}{Ctrl down}{Left}{Ctrl up}

Re: Script question, halp!

Posted: 30 Jun 2020, 12:08
by Kaisor124
Worked! Thanks again man :bravo: