Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #SingleInstance, Force
- #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.
- If not A_IsAdmin
- {
- Run *RunAs "%A_ScriptFullPath%" ; Requires v1.0.92.01+
- ExitApp
- }
- #IfWinActive, ahk_class MapleStoryClass
- `::
- WinGet, _Active, ID, A
- WinGet, _HWND, List, ahk_class MapleStoryClass
- Loop %_HWND%
- If !(_HWND%A_Index% = _Active)
- {
- Random, n, 500, 1000
- Sleep, %n%
- ControlSend,, {Shift}, % "ahk_id " _HWND%A_Index%
- }
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement