Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- GetKeyState, state, ScrollLock, T
- if state != D
- {
- HotKey, F12, off
- HotKey, F11, off
- HotKey, F10, off
- HotKey, F8, off
- HotKey, F7, off
- HotKey, F6, off
- HotKey, F5, off
- }
- ScrollLock::
- GetKeyState, state, ScrollLock, T
- if state = D
- {
- SetScrollLockState, off
- HotKey, F12, off
- HotKey, F11, off
- HotKey, F10, off
- HotKey, F8, off
- HotKey, F7, off
- HotKey, F6, off
- HotKey, F5, off
- }
- else
- {
- SetScrollLockState, on
- HotKey, F12, on
- HotKey, F11, on
- HotKey, F10, on
- HotKey, F8, on
- HotKey, F7, on
- HotKey, F6, on
- HotKey, F5, on
- }
- return
- F12::
- Send {Volume_Up 2}
- return
- #F12::
- Send {Volume_Up 2}
- return
- F11::
- Send {Volume_Down 2}
- return
- #F11::
- Send {Volume_Down 2}
- return
- F10::
- Send {Volume_Mute}
- return
- #F10::
- Send {Volume_Mute}
- return
- F8::
- Send {Media_Next}
- return
- #F8::
- Send {Media_Next}
- return
- F7::
- Send {Media_Prev}
- return
- #F7::
- Send {Media_Prev}
- return
- F6::
- Send {Media_Stop}
- return
- #F6::
- Send {Media_Stop}
- return
- F5::
- Send {Media_Play_Pause}
- return
- #F5::
- Send {Media_Play_Pause}
- return
- #Esc::
- Run shutdown /h
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement