Advertisement
Alcatraz_Rs

Construction - | Oak Larders

Oct 28th, 2015
1,989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 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. Numpad4::Rbutton
  5.  
  6. Numpad5::MouseMove 0, 50, 1, R
  7.  
  8. Numpad6::click
  9.  
  10. Numpad8::MouseMove 0, 70, 1, R
  11.  
  12. `::
  13. Suspend, Permit
  14. if not A_IsSuspended
  15. {
  16. Menu, Tray, Icon, %A_AhkPath%, 5, 1
  17. Suspend, On
  18. }
  19. else
  20. {
  21. Menu, Tray, Icon, %A_AhkPath%, 1, 0
  22. Suspend, Off
  23. }
  24. return
  25.  
  26. ;The script below the "`::" turns the AHK icon in your system tray to red so that you know that's it's suspended.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement