This is my function to put round brackets "()" around a selected text:
HotKeySet("^+9", "Encl")
While 1
Sleep(10000)
WEnd
Func Encl()
ClipPut("")
Send( "^x" )
Sleep(200)
local $ClipEncl = ClipGet()
Switch @HotKeyPressed
Case "^+9"
$ClipEncl = '(' & $ClipEncl & ')'
EndSwitch
ClipPut($ClipEncl )
Send("^v")
EndFunc
The problem is that many times the ctrl or shift or ctrl-shift key is stuck after I invoke the above hotkey
and I have to push the ctrl, shift or both keys again to be able to use these as before.
Does anyone know what I did wrong in this function?