Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- #singleinstance force
- Process, Priority, , High
- SetKeyDelay, 0
- #If WinActive("Orion") || WinActive("Old School RuneScape") || WinActive("OSBot") || WinActive("Runescape") || WinActive("Tribot") || WinActive("SwiftKit") || WinActive("Smart")
- sleep1=200
- sleep2=600
- offset=4
- Sleeping:
- Random, Rand, Sleep1, Sleep2
- sleep %rand%
- return
- /*
- You can change Q To any key you want:
- http://www.autohotkey.com/docs/Hotkeys.htm
- */
- Q::
- Blockinput on ; use window spy to get the coords for 'existing user' button on login screen.
- MouseClick , Left , 460 + Ran(offset),340 + ran(offset) ; This is the click for 'existing user, default coords is re-sized rsclient.
- gosub sleeping
- Send, Type your Username here
- Send, {Enter}
- gosub sleeping
- Send, Type your Password here
- Send, {Enter}
- gosub sleeping
- Blockinput off
- return
- ;Control + f12 to resize rs client.
- ^F12::
- IfWinExist Old School RuneScape
- {
- WinActivate
- ResizeWin(793,571)
- gosub sleeping
- ResizeWin(793,571)
- }
- return
- Ran(Num)
- {
- Random, r, -1*Num, Num
- Return r
- }
- ResizeWin(Width = 0,Height = 0)
- {
- WinGetPos,X,Y,W,H,A
- If %Width% = 0
- Width := W
- If %Height% = 0
- Height := H
- WinMove,A,,%X%,%Y%,%Width%,%Height%
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement