[Qt-interest] systemwide key and mouse button press events

Constantin Makshin cmakshin at gmail.com
Wed Nov 25 21:04:02 CET 2009


MSDN page for GetAsyncKeyState() function  
(http://msdn.microsoft.com/en-us/library/ms646293(VS.85).aspx) doesn't say  
you shouldn't use it. :)

I'd be nice if Gordon gave us a link on the statement regarding the  
deprecation of this function. No offence, only curiousity.

On Wed, 25 Nov 2009 22:46:37 +0300, Lars Friedrich Lars  
<lars-friedrich at gmx.net> wrote:
> thank you for the reply!
> I didn't know that the GetAsyncKeyState() function is to be (or even is)  
> deprecated as I didn't really track microsoft's policies since XP.
> It seems that I have to use QApplication's event loop to monitor the key  
> and mouse button press events and directly integrate this 'tool' with  
> the applications I would like to be movie-tutorialized. what a pitty!
> regards,
> lars
>
> -------- Original-Nachricht --------
>> Datum: Tue, 24 Nov 2009 09:43:02 -0700
>> Von: Gordon Schumacher <gordon at rebit.com>
>> An: "qt-interest at trolltech.com" <qt-interest at trolltech.com>
>> Betreff: Re: [Qt-interest] systemwide key and mouse button press events
>
>> Lars Friedrich Lars wrote:
>> > Hello,
>> >
>> > is it possible to get systemwide key press and mouse events using Qt?  
>> Is
>> there a cross-platform Qt-functionality comparable to MS window's
>> GetAsyncKeyState() which is not restricted to the current QApplication?
>> >
>>
>> I really don't believe so - especially since (off the top of my head) I
>> seem to remember that GetAsyncKeyState() was one of the things that
>> around Vista time-frame MS has said "don't do that, it may break"...

-- 
Constantin Makshin



More information about the Qt-interest-old mailing list