Minecraft 2 buttons pressed while tabbed out

Ask gaming related questions
tdotbubba
Posts: 1
Joined: 10 Sep 2020, 12:57

Minecraft 2 buttons pressed while tabbed out

10 Sep 2020, 13:01

im new to ahk and im looking for a script that will hold down both left and right mouse buttons in minecraft but let me use my mouse freely in other windows

this is what i got so far but it stops when i tab over to another window

Code: Select all

#IfWinActive, Minecraft

Toggle = 0

F4::
Toggle := !Toggle
If Toggle
	Send, {LButton Down}{RButton Down}
else
	Send, {LButton Up}{RButton Up}
return


esc:: ExitApp
Last edited by BoBo on 10 Sep 2020, 14:11, edited 1 time in total.
Reason: Moved to Gaming section. Added [code][/code]-tags.

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 13 guests