Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

twapi send_keys LWIN not working

68 views
Skip to first unread message

The Rickster

unread,
Aug 25, 2023, 8:24:43 PM8/25/23
to
The manual depression of the Windows key + H results in the appearance of the ms voice type ui. This does not occur when using tkcon as follows:

after 5000 {twapi::send_keys [list {LWIN} H]}

Waiting 5 seconds allows for the placement of the cursor in a .txt document.
However, the only (apparent) result is the presentation of "LWIN H" in the text document.

Please advise as to how to achieve the intended result - the appearance of the voice type ui.
Rick
Message has been deleted
Message has been deleted
Message has been deleted

The Rickster

unread,
Aug 26, 2023, 12:12:08 AM8/26/23
to
Correction! Depression of the left windows key (LWIN) and the 'h' key.

My understanding of the docs specifies the use of the + after a braced escape sequence in the release of both after the 'h' is sent.

after 5000 {twapi::send_keys {{LWIN}+h}

The result is still the same - the start menu opens and 'H' appears in the entry box. It seems as if the 'h' is being ignored.

Please advise on how the voice type ui can be opened with twapi.

greg

unread,
Aug 26, 2023, 3:28:48 AM8/26/23
to

greg

unread,
Aug 26, 2023, 9:18:39 AM8/26/23
to
The Rickster schrieb am Samstag, 26. August 2023 um 02:24:43 UTC+2:
from
twapi source code input.tcl
...
SHIFT {0x10 0}
CONTROL {0x11 0}
ALT {0x12 0}
ENTER {0x0D 0}

proc twapi::_parse_send_keys {keys}
array set modifier_vk {+ 0x10 ^ 0x11 % 0x12}

{ENTER] as default

...

As far as I understand the code, there are only these 4 modifiers for pressed keys.


That's why the LWIN Key + H doesn't work

The Rickster

unread,
Aug 26, 2023, 5:07:10 PM8/26/23
to
Greg, thanks so much..I looked as send_input but didn't get the 0 part of the syntax. Seemed the key code vs scan code part confused me. Again, thanks
0 new messages