Guest User

Untitled

a guest
Jan 14th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. #Persistent
  2. DetectHiddenWindows, On
  3. SetTitleMatchMode 2
  4.  
  5. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  6. ;DO NOT CHANGE ANYTHING ABOVE UNLESS YOU KNOW WHAT YOU'RE DOING
  7. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  8.  
  9. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  10. ;In order to make this script work, YOU need to input the correct coordinates that should be "clicked" by the script in the Clicker Heroes Window.
  11. ;To do so, just open the "Window Spy" of AutoHotKeys and click on a monster in Clicker Heroes.
  12. ;Then, without moving your mouse from the monster, look in the Window spy box for the information of: ( Mouse Position ) In Active Window.
  13. ;The first number is xcoord (mine was 1250) and the second number is ycoord (mine was 550).
  14. ;You need to input these coordinates below! These example values are valid coordinates for a full screen browser window in an 1920x1080 resolution screen.
  15. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  16.  
  17. xcoord:=1033
  18. ycoord:=544
  19.  
  20. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  21. ;DO NOT CHANGE ANYTHING BELOW UNLESS YOU KNOW WHAT YOU'RE DOING
  22. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  23.  
  24. winName=- Clicker Heroes
  25. SetControlDelay -1
  26. SetTimer,clickerHeroes,25
  27. return
  28.  
  29. *~LButton::
  30. pclick=1
  31. return
  32.  
  33. *~MButton::
  34. pclick=1
  35. return
  36.  
  37. *~RButton::
  38. pclick=1
  39. return
  40.  
  41. *~LButton UP::
  42. pclick=0
  43. return
  44.  
  45. *~MButton UP::
  46. pclick=0
  47. return
  48.  
  49. F1::ppause:=!ppause
  50. F2::
  51. if(isHidden)
  52. WinShow, %winName%
  53. else
  54. WinHide, %winName%
  55. isHidden:=!isHidden
  56. return
  57.  
  58. clickerHeroes:
  59. If(ppause or pclick){
  60. return
  61. }
  62. ControlClick,% "x" xcoord " y" ycoord,% winName,,,,Pos NA
  63. return
Advertisement
Add Comment
Please, Sign In to add comment