QUOTE (asbo @ May 11 2009, 04:35 PM)
Hi asbo,
Thanks for your answer, but i'm not sure you understood what I want to achieve.
I know about the input Device Control VI's, those allow me to catch key pressed on the keyboard or mouse, but it's not what I want to do.
What I want to do is to be able to click on a LabVIEW window without giving focus to this window.
I'll give you more details:
I developped a virtual keyboard to be used on touch screens, so the user won't have a real keyboard. When you press the screen, it's like the pc receiving a mouse click. Now what I want to be able to do is for example on a main application with a graph, the user could change the scaling by a click on the minimum or maximum scale and then using the virtual keyboard entering the new values, or if you want to click on a numeric control to enter a new value.
The problem is that you can give focus to a control or the graph scales, but when you press any of the button of the virtual keyboard which is another window from my main vi I loose the focus to my control and it's given to keyboard window.
What I want to reproduce is exactly the behavior of the microsoft visual keyboard, it doesn't take focus when you press any key on it.
If you can help, I would really appreciate.
Thanks
Clément