Advertisement
pk3456

test

Jan 26th, 2023 (edited)
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv
  2. #Requires AutoHotkey v1.1
  3. #SingleInstance, Force
  4. SetBatchLines, -1
  5. SendMode Input
  6.  
  7. CoordMode, Mouse, Client
  8.  
  9. #If WinActive("ahk_exe RuneLite.exe")
  10.  
  11. 1::
  12.     ; example click 872, 598 with 100 ms wait after
  13.     ; ClickPos(872, 598, 100)
  14.     ClickPos(872, 598)    ; Amulet of Strength
  15.     ClickPos(942, 603)    ; Berserker ring
  16.     ClickPos(823, 176)    ; quick prayer
  17.     ClickPos(935, 656)    ; Dragon Warhammer
  18.     Send F1               ; access special attack menu
  19.     Sleep 10
  20.     ClickPos(935, 656)    ; Click special attack
  21. Return
  22.  
  23. 2::
  24.     ; do stuff
  25. Return
  26.  
  27. 3::
  28.     ; do stuff
  29. Return
  30.  
  31. #If
  32.  
  33. ClickPos(x, y, Wait:=0) {
  34.     ControlClick x%x% y%y%, % "ahk_id" WinExist("A"),,,, NA Pos
  35.     Sleep %Wait%
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement