Created
September 28, 2021 11:11
-
-
Save ZackStone/a8d3dae01368519d718189a5e70b4cc6 to your computer and use it in GitHub Desktop.
Custom shortcuts using AutoHotKey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv, #Persistent, #SingleInstance | |
; ====================================================================== | |
; Winkey + J | |
; Script para alterar nivel de brilho da tela do notebook | |
#j::Run C:\manu\scripts\change-brightness-level.ps1 | |
; ====================================================================== | |
; Winkey + Y | |
; Abre o Windows Terminal | |
#y::Run C:\manu\links\Windows Terminal.lnk | |
; ====================================================================== | |
; Winkey + Z / Tecla multimídia STOP | |
; Ativa/desativa o microfone | |
#z:: | |
vkB2:: | |
SoundSet, +1, MASTER, mute, 3 | |
SoundGet, microphone_mute, MASTER, mute, 3 | |
if (microphone_mute = "Off") | |
{ | |
microphone_mute = LISTETING | |
SoundBeep, 700, 10 | |
autoTooltip("Mic ON", 500) | |
} | |
else | |
{ | |
microphone_mute = MUTED | |
SoundBeep, 400, 10 | |
autoTooltip("Mic OFF", 500) | |
} | |
return | |
; ====================================================================== | |
autoTooltip(Text, Time, which=1){ | |
ToolTip, % Text, , , % which | |
SetTimer,% "Tooltipoff" which ,% Time | |
} | |
; ====================================================================== | |
TooltipOff: | |
TooltipOff1: | |
TooltipOff2: | |
TooltipOff3: | |
TooltipOff4: | |
TooltipOff5: | |
TooltipOff6: | |
TooltipOff7: | |
TooltipOff8: | |
TooltipOff9: | |
TooltipOff10: | |
TooltipOff11: | |
SetTimer, % A_ThisLabel, Off | |
ToolTip,,,, % ( Substr(A_ThisLabel, 0) == "f" ) ? 1 : RegExReplace(A_ThisLabel, "TooltipOff") | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment