S Smith revised this gist . Go to revision
1 file changed, 7 insertions
mediakeys.ahk
| @@ -3,16 +3,23 @@ | |||
| 3 | 3 | SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| 4 | 4 | SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| 5 | 5 | ||
| 6 | + | ; win+f4 | |
| 6 | 7 | #F4::MEDIA_NEXT | |
| 7 | 8 | ||
| 9 | + | ; win+f5 | |
| 8 | 10 | #F5::MEDIA_PLAY_PAUSE | |
| 9 | 11 | ||
| 12 | + | ; win+f6 | |
| 10 | 13 | #F6::VOLUME_MUTE | |
| 11 | 14 | ||
| 15 | + | ; win+f7 | |
| 12 | 16 | #F7::VOLUME_DOWN | |
| 13 | 17 | ||
| 18 | + | ; win+f8 | |
| 14 | 19 | #F8::VOLUME_UP | |
| 15 | 20 | ||
| 21 | + | ; win+f9 | |
| 16 | 22 | #F9::Run, calc | |
| 17 | 23 | ||
| 24 | + | ; win+f10 | |
| 18 | 25 | #F10::Run, %appdata%\Spotify\Spotify.exe | |
S Smith revised this gist . Go to revision
1 file changed, 18 insertions
mediakeys.ahk(file created)
| @@ -0,0 +1,18 @@ | |||
| 1 | + | #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| 2 | + | #InstallKeybdHook | |
| 3 | + | SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
| 4 | + | SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
| 5 | + | ||
| 6 | + | #F4::MEDIA_NEXT | |
| 7 | + | ||
| 8 | + | #F5::MEDIA_PLAY_PAUSE | |
| 9 | + | ||
| 10 | + | #F6::VOLUME_MUTE | |
| 11 | + | ||
| 12 | + | #F7::VOLUME_DOWN | |
| 13 | + | ||
| 14 | + | #F8::VOLUME_UP | |
| 15 | + | ||
| 16 | + | #F9::Run, calc | |
| 17 | + | ||
| 18 | + | #F10::Run, %appdata%\Spotify\Spotify.exe | |