Alcatraz_Rs

Drop | Woodcutting - Mining - Hunter - Fishing

Oct 28th, 2015
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. ;#IfWinActive [Program file name] makes sure that the script will only work inside that specific program window, so that you don't have to suspend it every time you want to use the keys in e.g. Chrome. Change it to OSBuddy/OSBuddy Pro/RuneLoader if you're using the other clients.
  2. #If WinActive("RuneLoader") or WinActive("Old School RuneScape") or WinActive("OSBuddy") or WinActive("OSBuddy Pro")
  3.  
  4.  
  5. 1::RButton
  6.  
  7. 2::MouseMove, 0, 36, 1, R
  8.  
  9. 3::click
  10.  
  11. 4::MouseMove 45, -213, 0, R
  12.  
  13. `::
  14. Suspend, Permit
  15. if not A_IsSuspended
  16. {
  17. Menu, Tray, Icon, %A_AhkPath%, 5, 1
  18. Suspend, On
  19. }
  20. else
  21. {
  22. Menu, Tray, Icon, %A_AhkPath%, 1, 0
  23. Suspend, Off
  24. }
  25. return
  26.  
  27. ;The script below the "`::" turns the AHK icon in your system tray to red so that you know that's it's suspended.
Add Comment
Please, Sign In to add comment