Advertisement
twiz

MapleBGBuff

Apr 20th, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance, Force
  2. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  3. ; #Warn  ; Enable warnings to assist with detecting common errors.
  4. SendMode, Input  ; Recommended for new scripts due to its superior speed and reliability.
  5. SetWorkingDir, %A_ScriptDir%  ; Ensures a consistent starting directory.
  6.  
  7. If not A_IsAdmin
  8. {
  9.    Run *RunAs "%A_ScriptFullPath%"  ; Requires v1.0.92.01+
  10.    ExitApp
  11. }
  12.  
  13. #IfWinActive, ahk_class MapleStoryClass
  14. `::
  15.     WinGet, _Active, ID, A
  16.     WinGet, _HWND, List, ahk_class MapleStoryClass
  17.     Loop %_HWND%
  18.         If !(_HWND%A_Index% = _Active)
  19.         {
  20.             Random, n, 500, 1000
  21.             Sleep, %n%
  22.             ControlSend,, {Shift}, % "ahk_id " _HWND%A_Index%
  23.         }
  24. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement