else
This commit is contained in:
parent
60546cb945
commit
af4bcb35a8
2 changed files with 39 additions and 5 deletions
6
AHK/capslock_f13.ahk
Normal file
6
AHK/capslock_f13.ahk
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#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.
|
||||||
|
|
||||||
|
; USE CTRL + SPACE TO TOGGLE THE EFFECT ON AND OFF
|
||||||
|
CapsLock:: F13
|
|
@ -3,18 +3,46 @@ SendMode Input ; Recommended for new scripts due to its superior speed and reli
|
||||||
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
||||||
|
|
||||||
; Alt-F11, Alt-F12 = sound down and up
|
; Alt-F11, Alt-F12 = sound down and up
|
||||||
!F11::
|
; WINDOWS 7 USERS: You need
|
||||||
|
; `Send {Volume_Up}` instead of `SoundSet +5` and
|
||||||
|
; `Send {Volume_Down}` instead of `SoundSet -5`.
|
||||||
|
; The `SoundSet, +1, , mute` will still work okay.
|
||||||
|
|
||||||
|
vol_down(amount)
|
||||||
{
|
{
|
||||||
SoundSet -5
|
SoundSet -%amount%
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
!F12::
|
|
||||||
|
vol_up(amount)
|
||||||
{
|
{
|
||||||
SoundSet +5
|
SoundSet +%amount%
|
||||||
SoundGet, sound_mute, Master, mute
|
SoundGet, sound_mute, Master, mute
|
||||||
if sound_mute = On
|
if sound_mute = On
|
||||||
{
|
{
|
||||||
SoundSet, +1, , mute
|
SoundSet, +0, , mute
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
!F11::
|
||||||
|
{
|
||||||
|
vol_down(5)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
+!F11::
|
||||||
|
{
|
||||||
|
vol_down(1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
!F12::
|
||||||
|
{
|
||||||
|
vol_up(5)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
+!F12::
|
||||||
|
{
|
||||||
|
vol_up(1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue