Created
August 5, 2020 06:21
-
-
Save joar/290b2611b0c6a10e5bcadd38cd2b746d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#SingleInstance, Force | |
#KeyHistory, 0 | |
SetBatchLines, -1 | |
ListLines, Off | |
;SendMode Input ; Forces Send and SendRaw to use SendInput buffering for speed. | |
; SetTitleMatchMode, 3 ; A window's title must exactly match WinTitle to be a match. | |
SetWorkingDir, %A_ScriptDir% | |
SplitPath, A_ScriptName, , , , thisscriptname | |
#MaxThreadsPerHotkey, 1 ; no re-entrant hotkey handling | |
; DetectHiddenWindows, On | |
; SetWinDelay, -1 ; Remove short delay done automatically after every windowing command except IfWinActive and IfWinExist | |
; SetKeyDelay, -1, -1 ; Remove short delay done automatically after every keystroke sent by Send or ControlSend | |
; SetMouseDelay, -1 ; Remove short delay done automatically after Click and MouseMove/Click/Drag | |
SetTitleMatchMode, 1 ; A window's title start with WinTitle to be a match. | |
#IfWinActive, Minecraft | |
{ | |
$XButton2:: | |
;KeyWait, PgDn | |
While GetKeyState("XButton2", "P") { | |
Send {RButton} | |
Sleep 1000 / 30 ; 60/s is too quick | |
} | |
Return | |
} | |
^PgDn:: | |
SoundPlay, *-1, Wait | |
ExitApp, 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thank you for making this!