Hello, I have script that uses ControlSend to send keystrokes to a background window, which works just fine. However, the problem is, when I type something in a different window, and press down the shift key , the ControlSend inputs react the hold down shift key and send the key input in lowercase/uppercase . This does not really matter for me, as the window ControlSend is acting on is not case sensetive, but my text that was I was typing in the active windows is also affected by that, because the ControlSend command "snatches" the hold down shift key input. To put it an a different way: I would like to type in an active window, without ControlSend messing with the shift key.
Do you have any idea how to avoid this behaviour? Blockinput is not an option, because I send the ControlSend commands with small delays.
Here some minimal example, F5 starts and F4 stops the script.
Code: Select all
F5:: {
Global on := True
While on {
Loop 10
{
ControlSend("{f}",, "window name")
sleep 100
}
}}
F4:: {
Global on := False
}