Skip to content

Instantly share code, notes, and snippets.

@itpropro
Created February 10, 2019 15:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itpropro/29d6cc771cd42db17709e51e4426644c to your computer and use it in GitHub Desktop.
Save itpropro/29d6cc771cd42db17709e51e4426644c to your computer and use it in GitHub Desktop.
Example shortcuts for german umlauts on en-us keyboards
SetTimer,UPDATEDSCRIPT,1000
UPDATEDSCRIPT:
FileGetAttrib,attribs,%A_ScriptFullPath%
IfInString,attribs,A
{
FileSetAttrib,-A,%A_ScriptFullPath%
SplashTextOn,,,Script was updated,
Sleep,500
Reload
}
Return
#SingleInstance, Force
OSD(text)
{
#Persistent
Progress, hide x1050 Y900 b1 w150 h27 zh0 FM10 cwEEEEEE ct111111,, %text%, AutoHotKeyProgressBar, Verdana BRK
WinSet, TransColor, 000000 120, AutoHotKeyProgressBar
Progress, show
SetTimer, RemoveToolTip, 1000
Return
RemoveToolTip:
SetTimer, RemoveToolTip, Off
Progress, Off
return
}
RAlt & a::
{
If GetKeyState("Ctrl","P")
If GetKeyState("Shift","P")
Send Ä
else
Send ä
return
}
RAlt & u::
{
If GetKeyState("Ctrl","P")
If GetKeyState("Shift","P")
Send Ü
else
Send ü
return
}
RAlt & o::
{
If GetKeyState("Ctrl","P")
if GetKeyState("Shift","P")
Send Ö
else
Send ö
return
}
RAlt & s::
{
If GetKeyState("Ctrl","P")
Send ß
return
}
RAlt & e::
{
If GetKeyState("Ctrl","E")
Send €
return
}
RAlt & F7::
Send {Media_Prev}
return
RAlt & F8::
Send {Media_Next}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment