Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Misc. Functions that can be implemented into any scripts of your liking, used by myself.
- ; Contact me - Discord/RSN: Jiklim | Twitter: @JiklimRS_
- ; If you have any other useful functions that can be used in AHK scripts for runescape, then i'll add it here.
- F1:: Suspend,toggle ; Used to add a toggle-able button to suspend your AHK script.
- return
- SingleInstance FORCE ; Forces there to be only one instance of the script running.
- ; To use scripts only on specific clients, add the following:
- #IfWinActive ahk_class SunAwtFrame
- ; If you want to make a timer and play a sound to alert you when something is finished (like smelting cannonballs) you can do it like this (From reddit/u/DontThrowAwayTreees)
- CBallsNotification:
- SoundPlay, cballs_done.mp3
- return
- ; Pressing 'F2' sets a timer which will run only once (because of the - sign) after 154 seconds, which then executes the CBallsNotification-part. This part will play the cballs_done.mp3-file which is located in the same folder as your script.
- F2:: SetTimer, CBallsNotification, -154000
- return
- ; A toggleable shift key, useful for when the Shift key needs to be held down.
- LShift::
- if GetKeyState("LShift") ; LShift is logically down. Release it.
- Send {Blind}{LShift Up}
- else ; LShift is logically up. Press it.
- Send {Blind}{LShift Down}
- return
- ;Makes OSRS client borderless, moves the client to top left of main monitor, and resizes to borderless dimensions.
- F12::
- WinSet, Style, -0x00400000L, A
- WinSet, Style, -0x800000, A
- WinSet, Style, -0x40000, A
- WinMove, A, , 0, 0, 765, 503
- return
- ;Removes Vanilla OSRS Client borders.
- F11::
- WinSet, Style, -0x00400000L, A
- WinSet, Style, -0x800000, A
- WinSet, Style, -0x40000, A
- return
- ;Adds Vanilla OSRS Client borders.
- F10::
- WinSet, Style, +0x00400000L, A
- WinSet, Style, +0x800000, A
- WinSet, Style, +0x40000, A
- return
- ;Moves the client to top left of main monitor, and resizes it to bordered dimensions.
- F9::
- WinMove, A, , 0, 0, 781, 543
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement