xegaJ

[Smithing] Anvil Smithing

Oct 8th, 2016
746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Contact me for any questions on Reddit: /u/xegaJ
  2. ; This script is used for smithing items via the anvil at Varrock West bank.
  3.  
  4. #If WinActive("RuneLoader") or WinActive("Old School RuneScape") or WinActive("OSBuddy") or WinActive("OSBuddy Pro") ; This piece of code makes sure that the AHK script only works in a specific program/game window, this comes in handy if you don't feel like suspending/pausing the AHK script whenever you want to use the keys in another window such as Chrome/Netflix. Change it to "OSBuddy"/"OSBuddy Pro"/"RuneLoader" if you're using any 3rd party client.
  5.  
  6.  
  7. q:: Click right
  8. return
  9. w:: MouseMove, 0, 72, 1, R
  10. return
  11. e:: Click
  12. return
  13. a:: Click right
  14. return
  15. s:: MouseMove, 0, 54, 1, R
  16. return
  17. d:: Click
  18. return
  19.  
  20. `:: ; Pressing ` (~/console key) turns the AHK icon in your system tray to red to let you know that's it's suspended.
  21.     Suspend, Permit
  22.     if not A_IsSuspended
  23.     {
  24.         Menu, Tray, Icon, %A_AhkPath%, 5, 1
  25.         Suspend, On
  26.     }
  27.     else
  28.     {
  29.         Menu, Tray, Icon, %A_AhkPath%, 1, 0
  30.         Suspend, Off
  31.     }
  32.     return
Advertisement
Add Comment
Please, Sign In to add comment