Created
November 26, 2017 10:11
-
-
Save squeek502/f1c65219eea0c86bc59ecbfc3ab3686f to your computer and use it in GitHub Desktop.
AutoHotkey macros for /players x in Diablo 2 (using numpad 1-8)
This file contains hidden or 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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
Players(x) | |
{ | |
SendInput {enter} | |
Sleep 100 | |
SendInput /players%x%{enter} | |
} | |
#IfWinActive, ahk_class Diablo II | |
Numpad1::Players(1) | |
Numpad2::Players(2) | |
Numpad3::Players(3) | |
Numpad4::Players(4) | |
Numpad5::Players(5) | |
Numpad6::Players(6) | |
Numpad7::Players(7) | |
Numpad8::Players(8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment