Alcatraz_Rs

Magic & Smithing - | Superheating

Oct 28th, 2015
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 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:click
  5. return
  6. NumPad2::MouseMove, 0, 70, 1, R
  7. return
  8. NumPad5:click
  9. return
  10. NumPad3::Mousemove,0, 140, 0, R
  11. return
  12. NumPad7::Mousemove,0, -140, 0, R
  13. return
  14.  
  15. `::
  16. Suspend, Permit
  17. if not A_IsSuspended
  18. {
  19. Menu, Tray, Icon, %A_AhkPath%, 5, 1
  20. Suspend, On
  21. }
  22. else
  23. {
  24. Menu, Tray, Icon, %A_AhkPath%, 1, 0
  25. Suspend, Off
  26. }
  27. return
  28.  
  29. ;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