Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- !u::Return ; umlaut
- !s::SendInput % "ß"
- *u::umlaut("u","ü","Ü")
- *a::umlaut("a","ä","Ä")
- *o::umlaut("o","ö","Ö")
- umlaut(regular,umlautOption,umlautShiftOption) {
- if (A_PriorHotKey = "!u" && A_TimeSincePriorHotkey < 2000) {
- if (GetKeyState("Shift")) {
- SendInput % umlautShiftOption
- } else {
- SendInput % umlautOption
- }
- } else {
- if (GetKeyState("Shift") or GetKeyState("Capslock","T")) {
- SendInput % "+" regular
- } else {
- SendInput % regular
- }
- }
- }
- ^u::Send ^u
- ^!u::Send ^!u
- ^#u::Send ^#u
- ^+u::Send ^+u
- !#u::Send !#u
- !+u::Send !+u
- #u::Send #u
- #+u::Send #+u
- ^a::Send ^a
- ^!a::Send ^!a
- ^#a::Send ^#a
- ^+a::Send ^+a
- !a::Send !a
- !#a::Send !#a
- !+a::Send !+a
- #a::Send #a
- #+a::Send #+a
- ^o::Send ^o
- ^!o::Send ^!o
- ^#o::Send ^#o
- ^+o::Send ^+o
- !o::Send !o
- !#o::Send !#o
- !+o::Send !+o
- #o::Send #o
- #+o::Send #+o
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement