Last active
March 29, 2024 05:04
-
-
Save grayatrox/20bf0e665fa5611bb40be6eada4d0616 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
#Requires AutoHotkey v2.0 | |
#Warn all, off | |
Persistent | |
mcWindow := "ahk_class GLFW30" ; Minecraft Window | |
healButton := "F13" | |
healCommand := "heal" | |
HotIfWinActive(mcWindow) | |
Hotkey healButton, (*) => sendCommand(healCommand, healButton) | |
#HotIf | |
sendCommand(text,hotkey) | |
{ | |
KeyWait(hotkey) | |
BlockInput("Send") | |
SendInput("/") | |
Sleep(300) | |
SendInput(text) | |
SendInput ("{enter}") | |
BlockInput("Off") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment