Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CoordMode, pixel, client
- tray1x := 455
- tray1y := 536
- timer1 := 0xD8D8D8
- timer1b := 0x484848
- tray2x := 481
- timer2 := 0x747474
- timer2b := 0xB8B8B8
- WinActivate, GameClient ahk_class CrypticWindowClass
- Sleep, 333
- WinMove, GameClient ahk_class CrypticWindowClass,, 100, 100, 816, 639
- Sleep, 333
- Loop
- {
- Sleep, 1000
- IfWinActive, GameClient ahk_class CrypticWindowClass
- {
- PixelGetColor, tray1, tray1x, tray1y
- PixelGetColor, tray2, tray2x, tray1y
- ToolTip, Skill 1 %tray1%`nSkill 2 %tray2%, 50, 50
- If (tray1 != timer1 and != timer1b)
- {
- Sleep, 50
- Send, {LControl Down}
- Sleep, 50
- Send, {1}
- Sleep, 50
- Send, {LControl Up}
- }
- Else If (tray2 != timer2 and != timer2b)
- {
- Sleep, 50
- Send, {LControl Down}
- Sleep, 50
- Send, {2}
- Sleep, 50
- Send, {LControl Up}
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement