12-05-2011 11:43 AM
I tried to code a program which can be activated by key board. That is when it is minized or hidden behind other programs, it can be activated and brought to the top of all programs by clicking on the key board.
I don't know how to implement this though. Event structure won't work here because the front panel is not activated. The puzzle here is how to code a LV program which monitors the key board all time.
12-05-2011 11:51 AM
LabVIEW has keyboard VIs (search the palettes) which work even when there's no focus. The catch is that you have to poll the keyboard.
As for bringing a window to the front, you can get a handle to the window and set its position using Windows API calls. If you search for "winutil" or "Windows API" here, you should be able to find VIs which make these calls. If not, there are quite a few examples. Search for "SetWindowPos".
12-05-2011 12:21 PM
Thanks. I found those VIs. I kept thinking the keyboard clicking as an event, that's why I could not jump out of the event structure box. Thanks again.