Hi,
One of the apps I use, does not recognize common shortcuts, like Ctrl C, etc. if I press it too quickly.
Is there a way to make it so that any time Ctrl is used, that it will be slightly delayed on the "Up" action, maybe by 100ms or so?
However, it needs to happen for combo hotstrings (like Ctrl C, etc, rather than simply when Ctrl is pressed by itself)
Thanks,
Shawn
hold modifier keys slightly longer
Re: hold modifier keys slightly longer
See if this helps:
Code: Select all
$Ctrl::
Send, {Ctrl down}
KeyWait, Ctrl
Sleep, 100
Send, {Ctrl up}
return
Re: hold modifier keys slightly longer
Thanks Boiler!
I tested it with Windows On-Screen keyboard %windir%\system32\osk.exe, and it works if just CTRL is pressed.
However, if Ctrl c or another shortcut with Ctrl + another key, it does not keep Ctrl pressed down.
Would you or anyone else have any other ideas?
Thanks again
I tested it with Windows On-Screen keyboard %windir%\system32\osk.exe, and it works if just CTRL is pressed.
However, if Ctrl c or another shortcut with Ctrl + another key, it does not keep Ctrl pressed down.
Would you or anyone else have any other ideas?
Thanks again
Re: hold modifier keys slightly longer
This seems to work (delay of 1000ms so it's easier to see):
I don't think the OSK keyboard is a valid test because pressing another key seems to cancel the display of the Ctrl key even though a script like this running at the same time will indicate that it stays down as long as intended:
Code: Select all
$Ctrl::
Send, {Ctrl down}
KeyWait, Ctrl
Sleep, 1000
Send, {Ctrl up}
return
Ctrl Up::return
Code: Select all
loop {
ToolTip % GetKeyState("Ctrl") ? "Down" : "Up"
Sleep, 20
}
return
Who is online
Users browsing this forum: Ocelot, windfancy3 and 131 guests