Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CoordMode, pixel, client
  2. tray1x := 455
  3. tray1y := 536
  4. timer1 := 0xD8D8D8
  5. timer1b := 0x484848
  6. tray2x := 481
  7. timer2 := 0x747474
  8. timer2b := 0xB8B8B8
  9. WinActivate, GameClient ahk_class CrypticWindowClass
  10. Sleep, 333
  11. WinMove, GameClient ahk_class CrypticWindowClass,, 100, 100, 816, 639
  12. Sleep, 333
  13. Loop
  14. {
  15.     Sleep, 1000
  16.     IfWinActive, GameClient ahk_class CrypticWindowClass
  17.     {
  18.         PixelGetColor, tray1, tray1x, tray1y
  19.         PixelGetColor, tray2, tray2x, tray1y
  20.         ToolTip, Skill 1 %tray1%`nSkill 2 %tray2%, 50, 50
  21.         If (tray1 != timer1 and != timer1b)
  22.         {
  23.             Sleep, 50
  24.             Send, {LControl Down}
  25.             Sleep, 50
  26.             Send, {1}
  27.             Sleep, 50
  28.             Send, {LControl Up}
  29.         }
  30.         Else If (tray2 != timer2 and != timer2b)
  31.         {
  32.             Sleep, 50
  33.             Send, {LControl Down}
  34.             Sleep, 50
  35.             Send, {2}
  36.             Sleep, 50
  37.             Send, {LControl Up}
  38.         }
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement