Marco,

Are you sure the video stops playing because loose the focus?
Is it posible because loose foreground?
Have you tried to set the video window as topmost window ?

It is indeed posible to capture keyboard events from another
application,  but it's not easy.

George Zou
http://gtoolbox.yeah.net


----- Original Message -----
Subject: Capturing the keyboard
From: Marco Tedaldi <[EMAIL PROTECTED]>
Date: Tue, 18 May 2004 11:02:52 +0200

Hello wiring folks

I've got an application which neds to be running in a not-focussed
window, but which is still captunring the keyboard events.

We've got a Video-Application (not in LabView) which should show a video
on the same screen as the labwiew-application runs. The Problem ist,
that de Application stops playing the Video as soon as it looses the
Focus :-( But the Operator needs to write some Data in the Labview-App
while watching the Video.

With the "Initialize Keyboard.vi" and the "Acquire Input Data.vi" I can
get the Keyboard-Events even if the my app is in the bakcground, but the
main-application still gets the events too, which could possibly disturb
it :-(

So I'm seeking for a way to capture the events completely whitout
another application recieving them. As Bonus it would be great, to
"forward" the unused Keys to the main-app.
This should work on Windows. Portability is no issue at the Moment, so I
could also use System DLLs or DirectX.

I hope, someone understands, what i'm seeking for.

Bye

Marco

_________________________________________________________________
MSN Toolbar provides one-click access to Hotmail from any Web page � FREE download! http://toolbar.msn.click-url.com/go/onm00200413ave/direct/01/






Reply via email to