Alcatraz_Rs

Banking withdraw-14 | Herblore | Wines | Crafting |

Oct 28th, 2015
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. ;Example of the method: https://redd.it/3py9y8
  2.  
  3. ;#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.
  4. #If WinActive("RuneLoader") or WinActive("Old School RuneScape") or WinActive("OSBuddy") or WinActive("OSBuddy Pro")
  5.  
  6. 1::Rbutton
  7. return
  8.  
  9. 2::MouseMove 0, 70, 1, R
  10. return
  11.  
  12. 3::click
  13. return
  14.  
  15. F1::Esc
  16. return
  17.  
  18. F2::MouseMove 145, 90, 0, R
  19. return
  20.  
  21. F3::MouseMove 0, -220, 1, R
  22. return
  23.  
  24. 4::MouseMove -160, 1, 0, R
  25. return
  26.  
  27. Space::MouseMove 16, -152, 1, R
  28. return
  29.  
  30. `::
  31. Suspend, Permit
  32. if not A_IsSuspended
  33. {
  34. Menu, Tray, Icon, %A_AhkPath%, 5, 1
  35. Suspend, On
  36. }
  37. else
  38. {
  39. Menu, Tray, Icon, %A_AhkPath%, 1, 0
  40. Suspend, Off
  41. }
  42. return
  43.  
  44. ;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