Alcatraz_Rs

Smithing

Oct 28th, 2015
157
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 Right
  5. return
  6.  
  7. 2::Mousemove,0,70,0,R
  8. return
  9.  
  10. 3::Click
  11. return
  12.  
  13. 4::Escape
  14. return
  15.  
  16. Space::Mousemove,-160,-200,0,R
  17. return
  18.  
  19. return
  20. q::Click Right
  21. return
  22.  
  23. w::Mousemove,0,50,0,R
  24. return
  25.  
  26. e::Click
  27. return
  28.  
  29. `::
  30. Suspend, Permit
  31. if not A_IsSuspended
  32. {
  33. Menu, Tray, Icon, %A_AhkPath%, 5, 1
  34. Suspend, On
  35. }
  36. else
  37. {
  38. Menu, Tray, Icon, %A_AhkPath%, 1, 0
  39. Suspend, Off
  40. }
  41. return
  42.  
  43. ;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