_ispressed('DE') does not work on German keyboards for quote. This works on German keyboards.
#include <Misc.au3>
;~ _ispressed('DE') does not work on German keyboards for quote.
;~ This works on German keyboards.
;~ Place the cursor after the #cs line, since the quote will be written there.
;~ Then press F5
;~ Press ESC to exit
Local $hDLL = DllOpen("user32.dll")
While 1
If _IsPressed("1B", $hDLL) Then ExitLoop
;~ If _IsPressed("BF", $hDLL) _
;~ Then Beep(1800, 200) ; if CAPS LOCK, use _WinAPI_GetKeyState() to check keystate
If _IsPressed("BF", $hDLL) And _ ; the key with hash and quote
_IsPressed("10", $hDLL) And _ ; a shift key is pressed
(_IsPressed("A1", $hDLL) or _ ; if left shift key
_IsPressed("A0", $hDLL)) _ ; if right shift key
Then Beep(1800, 200)
WEnd
DllClose($hDLL)
Beep(800, 200)
#cs
Place the cursor after this line, since the Quote will be written there.
#ce
Enjoy Edit: Fixed issue with left shift key Check for CAPS LOCK not fixed.