xegaJ

[Misc.] Quickly log into RuneScape

Oct 8th, 2016
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Contact me for any questions on Reddit: /u/DzhK
  2. ; This script is used to quickly login to RuneScape by pressing the LEFT CTRL + LEFT SHIT simultaneously.
  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. ^Shift::Send example@example.com/username{tab}password{Enter} ; change the [email protected]/username with your login name and password with your password.
  7. Return
  8.  
  9. `:: ; Pressing ` (~/console key) turns the AHK icon in your system tray to red to let you know that's it's suspended.
  10.     Suspend, Permit
  11.     if not A_IsSuspended
  12.     {
  13.         Menu, Tray, Icon, %A_AhkPath%, 5, 1
  14.         Suspend, On
  15.     }
  16.     else
  17.     {
  18.         Menu, Tray, Icon, %A_AhkPath%, 1, 0
  19.         Suspend, Off
  20.     }
  21.     return
Add Comment
Please, Sign In to add comment