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?
Keep Right / Left Mousebutton pressed down when pressing F5
- Flarebrass
- Posts: 104
- Joined: 20 Nov 2015, 13:13
- Location: USA
- Contact:
Re: Keep Right / Left Mousebutton pressed down when pressing F5
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)
Who is online
Users browsing this forum: Google [Bot] and 79 guests