09-23-2008 02:35 PM
09-23-2008 03:17 PM
09-24-2008 03:25 PM - edited 09-24-2008 03:25 PM
Hi Randy,
I'm not sure I understand what you are asking. Do you want to record the keyboard while focus is on other maximized windows?
If so, check out the Basic Input demo.VI in the example finder (can be found if you search for "keyboard"). You should be able to open another window and maximize it and the VI will still catch keystrokes.
09-25-2008 06:15 AM
The problem that I am having is that we are building an application that is designed to be used without a mouse attached to the computer and therefore, the user can not get focus back to the vi if it is lost. This has happened in the past a couple times when everything is not started up in the right order (computer, remote equipment, ect.) the vi will not end up with focus. I was hoping that there was a way to ensure that the vi has the dark blue title bar and that the application maintains focus the entire time the computer is on.
When I try to do this with the Invoke node, I can get it to work with the standard window but it cause the window to not be maximized. I wanted to setup a check to see if the window has focus and if it does not then reestablish focus only when lost.
09-25-2008 09:30 AM
Which Invoke node?
Things I can suggest:
09-26-2008 09:53 AM
Hi Randy,
A simple solution is to use the Operating Systems shortcut for switching open windows, alt+tab. Another solution is to minimize and then maximize the front panel. This will bring the front panel to the front of all the open windows. You can also use the lvwutil32, as mentioned by smercurio_fc. This will provide more control, however it is a much more complicated solution that requires calling into a dll.
Let me know if you have any questions.