Skip to content

Instantly share code, notes, and snippets.

@webdevs-pro
Created October 23, 2024 04:18
Show Gist options
  • Save webdevs-pro/9d316c8a27e597a8562fc67777c9ed27 to your computer and use it in GitHub Desktop.
Save webdevs-pro/9d316c8a27e597a8562fc67777c9ed27 to your computer and use it in GitHub Desktop.
My AHK skript
#F1::
SetInputLang(0x0409)
Sleep, 100
SoundPlay, %A_WinDir%\Media\Speech On.wav
ToolTip, EN
SetTimer, RemoveToolTip, -1000
Return
#F2::
SetInputLang(0x0419)
Sleep, 100
SoundPlay, %A_WinDir%\Media\Speech On.wav
ToolTip, RU
SetTimer, RemoveToolTip, -1000
Return
#F3::
SetInputLang(0x422)
Sleep, 100
SoundPlay, %A_WinDir%\Media\Speech On.wav
ToolTip, UA
SetTimer, RemoveToolTip, -1000
Return
^Space::Send {Media_Play_Pause}
^Right::Send {Media_Next}
SetInputLang(Lang)
{
WinExist("A")
ControlGetFocus, CtrlInFocus
PostMessage, 0x50, 0, % Lang, %CtrlInFocus%
}
^!u::
clipboard := ""
send ^{c}
clipWait, 0.3
stringUpper, clipboard, clipboard
send ^{v}
return
^!l::
clipboard := ""
send ^{c}
clipWait, 0.3
stringLower, clipboard, clipboard
send ^{v}
return
^!t::
clipboard := ""
send ^{c}
clipWait, 0.3
stringLower, clipboard, clipboard, T
send ^{v}
return
^`::
Send, ^#{F24}
TrayTip, , Touchpad toggled
SetTimer, HideTrayTip, -1000
return
^Up::Send {Volume_Up}
^Down::Send {Volume_Down}
HideTrayTip() {
TrayTip
}
RemoveToolTip:
ToolTip
return
XButton1::MButton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment