xegaJ

[Firemaking] Simple click and unnote at the G.E.

Oct 8th, 2016
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. ; Contact me for any questions on Reddit: /u/DzhK
  2.  
  3. #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.
  4.  
  5. 2::1
  6. return
  7.  
  8. 3::click
  9. return
  10.  
  11. `:: ; Pressing ` (~/console key) turns the AHK icon in your system tray to red to let you know that's it's suspended.
  12. Suspend, Permit
  13. if not A_IsSuspended
  14. {
  15. Menu, Tray, Icon, %A_AhkPath%, 5, 1
  16. Suspend, On
  17. }
  18. else
  19. {
  20. Menu, Tray, Icon, %A_AhkPath%, 1, 0
  21. Suspend, Off
  22. }
  23. return
Add Comment
Please, Sign In to add comment