Re: how can I detect if the shift key is currently down (on windows) (twapi?)

Liste des GroupesRevenir à cl tcl 
Sujet : Re: how can I detect if the shift key is currently down (on windows) (twapi?)
De : wortkarg3 (at) *nospam* yahoo.com (Harald Oehlmann)
Groupes : comp.lang.tcl
Date : 05. Aug 2024, 07:38:31
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v8ps15$hp4f$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
Am 03.08.2024 um 21:11 schrieb et99:
On 8/1/2024 11:19 AM, et99 wrote:
On 7/31/2024 9:47 PM, Ashok wrote:
proc is_shift_down {} {expr {!!([twapi::GetAsyncKeyState 0x10] & 0x8000)}}>
>
 I've expanded the above to allow for any key to be tested for up/down and also optionally return the status of the key having been recently pressed, as documented in the windows function GetAsyncKeyState. I've posted the code for this to the wiki here (at the bottom):
 https://wiki.tcl-lang.org/page/KeySyms+on+platforms+other+than+X11
  
Great work, thank you !
Maybe provide it to twapi using a ticket there...
https://sourceforge.net/p/twapi/bugs/
Tahnks,
Harald

Date Sujet#  Auteur
28 Jul 24 * how can I detect if the shift key is currently down (on windows) (twapi?)5et99
1 Aug 24 `* Re: how can I detect if the shift key is currently down (on windows) (twapi?)4Ashok
1 Aug 24  `* Re: how can I detect if the shift key is currently down (on windows) (twapi?)3et99
3 Aug 24   `* Re: how can I detect if the shift key is currently down (on windows) (twapi?)2et99
5 Aug 24    `- Re: how can I detect if the shift key is currently down (on windows) (twapi?)1Harald Oehlmann

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal