Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Example of the method: https://redd.it/3py9y8
- ;#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")
- 1::Rbutton
- return
- 2::MouseMove 0, 70, 1, R
- return
- 3::click
- return
- F1::Esc
- return
- F2::MouseMove 145, 90, 0, R
- return
- F3::MouseMove 0, -220, 1, R
- return
- 4::MouseMove -160, 1, 0, R
- return
- Space::MouseMove 16, -152, 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