Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;#IfWinActive [Program file name] makes sure that the script will only work inside that specific program window, so that you don't have to suspend it every time you want to use the keys in e.g. Chrome. Change it to OSBuddy/OSBuddy Pro/RuneLoader if you're using the other clients.
- #If WinActive("RuneLoader") or WinActive("Old School RuneScape") or WinActive("OSBuddy") or WinActive("OSBuddy Pro")
- q::MouseMove, 0, 70, 1, R
- return
- w::click
- return
- e::mousemove, 0, -70, 1, R
- return
- 1::mousemove, 0, 40, 1, R
- return
- 2::click
- return
- 3::MouseMove, 0, -40, 1, R
- return
- `::
- Suspend, Permit
- if not A_IsSuspended
- {
- Menu, Tray, Icon, %A_AhkPath%, 5, 1
- Suspend, On
- }
- else
- {
- Menu, Tray, Icon, %A_AhkPath%, 1, 0
- Suspend, Off
- }
- return
- ;The script below the "`::" turns the AHK icon in your system tray to red so that you know that's it's suspended.
Add Comment
Please, Sign In to add comment