Minecraft 2 buttons pressed while tabbed out

Ask gaming related questions
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

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

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: TheThirdEye and 12 guests