Advertisement
Guest User

kill log

a guest
Aug 10th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AHK releases.
  2. #SingleInstance force ; Prevents multiple instances of AHK.
  3. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  4.  
  5. windowX := ""
  6. windowY := ""
  7. windowSizeX := "" ; resolution width
  8. windowSizeY := "" ; resolution height
  9.  
  10. CheckWindow:
  11. {
  12. if WinExist("Idle Champions")
  13. {
  14. WinGetPos, windowX, windowY, windowSizeX, windowSizeY, Idle Champions
  15. }
  16. else
  17. {
  18. MsgBox Idle Champions not running.
  19. }
  20. Return
  21. }
  22.  
  23. ResetMouse:
  24. {
  25. MouseMove, 0, 0
  26. Sleep, 50
  27. Return
  28. }
  29.  
  30. ToggleKillLog:
  31. {
  32. GoSub CheckWindow
  33. GoSub ResetMouse
  34. ImageSearch, HideX, HideY, 0, 0, windowSizeX, windowSizeY, %A_WorkingDir%\img\hideButton.bmp
  35. if (HideX)
  36. {
  37. MouseMove HideX + 4, HideY + 4
  38. Sleep 200
  39. Click
  40. }
  41. else
  42. {
  43. send, ^l
  44. Sleep 100
  45. send, ^l
  46. Sleep 100
  47. send, ^l
  48. Sleep 200
  49. }
  50. Return
  51. }
  52.  
  53. ^k::GoSub ToggleKillLog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement