xegaJ

[Fletching] Darts/Bolts

Oct 8th, 2016
2,047
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Contact me for any questions on Reddit: /u/xegaJ
  2.  
  3. #If WinActive("RuneLoader") or WinActive("Old School RuneScape") or WinActive("OSBuddy") or WinActive("OSBuddy Pro") ; This piece of code makes sure that the AHK script only works in a specific program/game window, this comes in handy if you don't feel like suspending/pausing the AHK script whenever you want to use the keys in another window such as Chrome/Netflix. Change it to "OSBuddy"/"OSBuddy Pro"/"RuneLoader" if you're using any 3rd party client.
  4.  
  5. 1::click
  6. return
  7.  
  8. 2::mousemove,0,35,0,R
  9. return
  10.  
  11. 3::click
  12. return
  13.  
  14. 4::mousemove,0,-35,0,R
  15. return
  16.  
  17. NumpadEnter::click
  18. return
  19.  
  20. Numpad3::mousemove,0,35,0,R
  21. return
  22.  
  23. Numpad2::click
  24. return
  25.  
  26. Numpad1::mousemove,0,-35,0,R
  27. return
  28.  
  29.  
  30. `:: ; Pressing ` (~/console key) turns the AHK icon in your system tray to red to let you know that's it's suspended.
  31.     Suspend, Permit
  32.     if not A_IsSuspended
  33.     {
  34.         Menu, Tray, Icon, %A_AhkPath%, 5, 1
  35.         Suspend, On
  36.     }
  37.     else
  38.     {
  39.         Menu, Tray, Icon, %A_AhkPath%, 1, 0
  40.         Suspend, Off
  41.     }
  42.     return
Advertisement
Add Comment
Please, Sign In to add comment