AutoHotKey Login Script

A simple script created because password managers didn't want to cooperate with RuneScape clients. This script works for both OldSchool RuneScape and its many third party clients as well as the official RuneScape 3 client.

If you do not want to download the script then you can also copy the code below and paste it into notepad and save the file as a .ahk file. To edit, right click the file after installing AutoHotKey and click on Edit Script.

After use the script automatically closes AutoHotKey, and it is required to (re)run the script for every login as a result. You might also want to consider using a password manager, they should work with the clients now.

;|------------------|-----------------------------------|
;| Default keybind  |-----------------------------------|
;|     Shift+Q      |-----------------------------------|
;|------------------|-----------------------------------|
;|      Config      |-----------------------------------|
;|------------------|-----------------------------------|
;| Replace 'Your_username' and 'Your_password'          |
;| with your username and password respectively.        |
;|------------------------------------------------------|
   Username = Your_username
   Password = Your_password
;|------------------------------------------------------|
;| Auto log in? Replace 'no' with 'yes' to enable.      |
;|------------------------------------------------------|
   ALI = no
;|------------------------------------------------------|
;| Customize the keybind.                               |
;| Replace 'Q' with the letter you want to use and      |
;| replace 'Shift' with the modifier you want  to use.  |
;|------------------------------------------------------|
   Keybind = Shift & Q
;|------------------|-----------------------------------|
;|      Logic       |-----------------------------------|
;|------------------|-----------------------------------|
SetTitleMatchMode, 2
Hotkey,%Keybind%,Execute
Return
Execute:
#If WinActive("RuneScape") or WinActive("RuneLoader") or WinActive("Konduit") or WinActive("OSBuddy") or WinActive("RuneLite")
If ALI = yes
autologin = `n
else
autologin =
Send {text}%Username%`t%Password%%autologin%
ExitApp

Date:

1
2
3
4