Deutsch   English   Français   Italiano  
<v8ps15$hp4f$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Harald Oehlmann <wortkarg3@yahoo.com>
Newsgroups: comp.lang.tcl
Subject: Re: how can I detect if the shift key is currently down (on windows)
 (twapi?)
Date: Mon, 5 Aug 2024 08:38:31 +0200
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <v8ps15$hp4f$1@dont-email.me>
References: <v843lb$3js4c$1@dont-email.me> <v8f40t$20phh$1@dont-email.me>
 <v8gjjs$2am24$1@dont-email.me> <v8lvd2$3j5at$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 05 Aug 2024 08:38:29 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ab7993b65a720f14c5758bf871017c08";
	logging-data="582799"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/IQDRm6Q1cJnthU8guR2/0"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:iZ9Bcw5lTGtwCJh30JbNiwZEWEo=
In-Reply-To: <v8lvd2$3j5at$1@dont-email.me>
Content-Language: en-GB
Bytes: 1829

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