Alcatraz_Rs

Fletching - | Darts | Bolts

Oct 28th, 2015
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 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. 1::click
  5. return
  6. 2::mousemove,0,35,0,R
  7. return
  8. 3::click
  9. return
  10. 4::mousemove,0,-35,0,R
  11. return
  12.  
  13. NumpadEnter::click
  14. return
  15. Numpad3::mousemove,0,35,0,R
  16. return
  17. Numpad2::click
  18. return
  19. Numpad1::mousemove,0,-35,0,R
  20. return
  21.  
  22. `::
  23. Suspend, Permit
  24. if not A_IsSuspended
  25. {
  26. Menu, Tray, Icon, %A_AhkPath%, 5, 1
  27. Suspend, On
  28. }
  29. else
  30. {
  31. Menu, Tray, Icon, %A_AhkPath%, 1, 0
  32. Suspend, Off
  33. }
  34. return
  35.  
  36. ;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