NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Operator interface losing focus

To save the operator from having to grab the mouse or keyboard I mounted some programmable buttons to my fixture. These buttons send keyboard shortcuts to control the test station. The problem is that after the sequence has finished, the UI is no longer in focus. Without focus, the key presses don't reach the UI and the operator cannot start the next test.

 

The UI was derived from the C# Simple UI example. I added a callback for _ApplicationMgrEvents_EndExecutionEvent where I attempt to reactivate the window.

 

I've tried the activate method of the form as well as ShowWindow in User32.dll. While focus returns to the UI on my development system, these attempts don't work on the production PC. I don't know what else I can try.

 

 

0 Kudos
Message 1 of 1
(571 Views)