[Qt-interest] systemwide key and mouse button press events
Lars Friedrich Lars
lars-friedrich at gmx.net
Wed Nov 25 21:16:43 CET 2009
that's true, but I found some (weird) blogs and discussions concerning GetAsyncKeyState()-usage on Vista - obviously, in some cases, it did not work for some people.
however, the original question was whether it is possible to achieve some comparable behavior in Qt. both missing positive replies to my question and internet search let me believe that there is in fact no clear strategy in Qt for doing that ... which is quite depressing.
lars
-------- Original-Nachricht --------
> Datum: Wed, 25 Nov 2009 23:04:02 +0300
> Von: "Constantin Makshin" <cmakshin at gmail.com>
> An: "Qt Interest" <qt-interest at trolltech.com>
> Betreff: Re: [Qt-interest] systemwide key and mouse button press events
> 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
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser
More information about the Qt-interest-old
mailing list