Page 1 of 1

ControlClick

Posted: 10 May 2024, 16:55
by Performance
how do i add two ControlClick where they both hold Left and Right mouse button? i dont know how to put Right and Left, because i doing it wrong,and how do i stop the script pressing F8?please give a full code because i prorably not gonna understand, thank you very much

Code: Select all

F8::
ControlClick,, ahk_exe java.exe,,,,D

Re: ControlClick

Posted: 11 May 2024, 10:42
by Rohwedder
Hallo,
try:

Code: Select all

F8::
IF Down := !Down { ; toggles Left and Right mouse button down/up
	ControlClick,, ahk_exe java.exe,, Left,, D
	ControlClick,, ahk_exe java.exe,, Right,, D
} Else {
	ControlClick,, ahk_exe java.exe,, Left,, U
	ControlClick,, ahk_exe java.exe,, Right,, U
} Return