Input sends initial hotkey to system
Posted: 04 Aug 2017, 07:12
Am I trying to create a Umlaut Script that mimics the functionality Microsoft Word offers.
To this effect when you press CTRL + SHIFT + 7 (CTRL + &) and s the character ß should be inserted.
This is what I have come up with:
So far everything works as intended, except that after the run of the script the keyboard layout has changed.
When I exchange the Input command with InputBox there is no keyboard layout change.
Furthermore, the change in keyboard layout happens on the release of CTRL + Shift (the language switch combination for my Windows).
AHK Version: 1.1.26.01
Windows Version 10 Pro
To this effect when you press CTRL + SHIFT + 7 (CTRL + &) and s the character ß should be inserted.
This is what I have come up with:
Code: Select all
^&::
Input key, I C L1 T1
StringCaseSense, On
IfEqual key,s
SendInput {U+DF}
else IfEqual key,S
SendInput {U+1E9E}
else
SendInput %key%
return
When I exchange the Input command with InputBox there is no keyboard layout change.
Furthermore, the change in keyboard layout happens on the release of CTRL + Shift (the language switch combination for my Windows).
AHK Version: 1.1.26.01
Windows Version 10 Pro