Form focus/keyboard input question

Form focus/keyboard input question

Post by Liska Stat » Fri, 31 Mar 2006 02:40:35


Question. We're attempting to make a little companion program for a client's
existing suite of applications.
I'm wondering what it'd take for our little program to look for a particular
combination of keystrokes even when its window doesn't have focus. I.E. If I
was on, oh, say, Microsoft Word, and I hit CTRL+F3+D, our little app would
pick up on that and do its thing.

Any idea how to go about getting it to monitor keyboard input while not
having focus? Thanks!

LS
 
 
 

1. form input field, scroll bar and focus question...

2. Loosing form input focus of Modal Form

All,

I have the following setup:

Two applications on a single PC using a touch screen. One of the
applications get events in from an external source and that cause the
application to immediately take input focus on the computer.
BringToFront is used.

To switch back to the other application a button is selected on the
application with input focus and via the windows messaging system the
other application is informed to become the foreground application.

Now here is my problem.
If there is a sub-form open in Modal format and an automatic switch
occurs and I then switch back to the original application I loose the
input focus to this modal form. In fact the form is not shown at all.
The application main form is shown in stead. I have to do a single
Alt-Tab to get the modal form back. Why is this. Shouldn't Modal have
the always on top set in this case.

Interesting enough is that I also call sub forms from a Visual C++
generated DLL and these sub forms in modal format come to the foreground
when I force a switch back to the application.

Am I missing a setting on my form properties. I have tried AlwaysOnTop,
but NO.

This is what I do in a switch request:

Sending Side
hndl = FindWindow(WindowClassStr, NULL);
if (hndl)
{
BringWindowToTop(hndl);
PostMessage(hndl, WM_USER + 171, Switch_Command, 0);
}

WindowClassStr is the class name of the main form of the application to
switch to.

Thanks
Werner

3. [Uclinux-dist-devel] [PATCH v2] input/keyboard: add ADP5588 QWERTY I2C Keyboard Input device driver

4. [PATCH] input/keyboard: add ADP5588 QWERTY I2C Keyboard Input device driver

5. [Uclinux-dist-devel] [PATCH] input/keyboard: add ADP5588 QWERTYI2C Keyboard Input device driver

6. [PATCH] input/keyboard: add ADP5588 QWERTY I2C Keyboard Input device driver

7. [Uclinux-dist-devel] [PATCH v2] input/keyboard: add ADP5588 QWERTY I2C Keyboard Input device driver

8. [Uclinux-dist-devel] [PATCH] input/keyboard: add ADP5588 QWERTYI2C Keyboard Input device driver

9. [Uclinux-dist-devel] [PATCH] input/keyboard: add ADP5588 QWERTYI2C Keyboard Input device driver

10. [PATCH] input/keyboard: add ADP5588 QWERTY I2C Keyboard Input device driver

11. self.focus stopping all keyboard input to window

12. Setting focus on input field, keyboard-only operability

13. Monitoring keyboard when not having input focus.

14. How can I invalidate ce input system (e.g. keyboard input , mouse input)?

15. How can I invalidate ce input system (e.g. keyboard input,mouse input)?