Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AHK releases.
- #SingleInstance force ; Prevents multiple instances of AHK.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- windowX := ""
- windowY := ""
- windowSizeX := "" ; resolution width
- windowSizeY := "" ; resolution height
- CheckWindow:
- {
- if WinExist("Idle Champions")
- {
- WinGetPos, windowX, windowY, windowSizeX, windowSizeY, Idle Champions
- }
- else
- {
- MsgBox Idle Champions not running.
- }
- Return
- }
- ResetMouse:
- {
- MouseMove, 0, 0
- Sleep, 50
- Return
- }
- ToggleKillLog:
- {
- GoSub CheckWindow
- GoSub ResetMouse
- ImageSearch, HideX, HideY, 0, 0, windowSizeX, windowSizeY, %A_WorkingDir%\img\hideButton.bmp
- if (HideX)
- {
- MouseMove HideX + 4, HideY + 4
- Sleep 200
- Click
- }
- else
- {
- send, ^l
- Sleep 100
- send, ^l
- Sleep 100
- send, ^l
- Sleep 200
- }
- Return
- }
- ^k::GoSub ToggleKillLog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement