need help with a special left mouse button toggle script

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Vyy
Posts: 2
Joined: 16 Dec 2017, 11:52

need help with a special left mouse button toggle script

08 Feb 2018, 14:48

hi

at the moment i use this script for an lbutton toggle:
---------------------------------------------------------------------

LButtonFlag := !LButtonFlag ; Turns on the Lbutton flag
Hotkey, $LButton, ClickToggler

ClickToggler:
SendInput, {LButton Down}
Sleep, 200 ; Let the user let up the mouse button
Keywait, LButton, D
SendInput,{LButton Up}
return

F1::
LButtonFlag := !LButtonFlag ;toggles the flag and turns on/off the hotkey
If (!LButtonFlag)
Hotkey, $Lbutton, Off
else
Hotkey, $Lbutton, On
return
---------------------------------------------------------------------------

but i would like to modify it in the way that when i press the right mouse button, it would do the following:

- press the right mouse button
- immediately after press the left mouse button (without the toggle)


what code do i have to add to this script to make this work?

thank you!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: CuriousDad, rc76 and 231 guests