Script question, halp! Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Kaisor124
Posts: 3
Joined: 29 Jun 2020, 08:21

Script question, halp!

29 Jun 2020, 08:42

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.
User avatar
Learning one
Posts: 159
Joined: 04 Oct 2013, 13:59
Location: Croatia
Contact:

Re: Script question, halp!

29 Jun 2020, 16:47

Try this:

Code: Select all

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

F12::
Suspend
Pause,,1
return
Kaisor124
Posts: 3
Joined: 29 Jun 2020, 08:21

Re: Script question, halp!

30 Jun 2020, 04:00

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.
User avatar
Learning one
Posts: 159
Joined: 04 Oct 2013, 13:59
Location: Croatia
Contact:

Re: Script question, halp!  Topic is solved

30 Jun 2020, 11:44

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}
Kaisor124
Posts: 3
Joined: 29 Jun 2020, 08:21

Re: Script question, halp!

30 Jun 2020, 12:08

Worked! Thanks again man :bravo:

Return to “Ask For Help”

Who is online

Users browsing this forum: ananthuthilakan, Google [Bot], mcl, punchin, scriptor2016, sobuj53, Xeo786 and 25 guests