Keep Right / Left Mousebutton pressed down when pressing F5

Ask gaming related questions (AHK v1.1 and older)
APBox
Posts: 2
Joined: 06 Feb 2016, 12:41

Keep Right / Left Mousebutton pressed down when pressing F5

08 Apr 2016, 12:50

I'm lost.

I'm looking to have a script that keeps the right or left mouse button pressed down when I press F5 (toggle) until I press F5 again to stop. Onyl should do that in Game XYZ.

Anybody can gimme a script pretty please? :(
User avatar
Flarebrass
Posts: 104
Joined: 20 Nov 2015, 13:13
Location: USA
Contact:

Re: Keep Right / Left Mousebutton pressed down when pressing F5

11 Apr 2016, 06:52

This link is a great start: https://autohotkey.com/board/topic/6457 ... re-thread/

Code: Select all

SetTitleMatchMode 2
toggle := 0

Esc::ExitApp

#IfWinActive, XYZ
F5::
toggle := !toggle
if (toggle)
	Send {Click down}
else
	Send {Click up}
return
#IfWinActive
(Note that I can't test my code before posting, so beware of bugs! -Flarebrass Amatzikahni)

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 79 guests