jackscl Posted June 17, 2020 Report Share Posted June 17, 2020 (edited) Hi Everyone, This days, I meet a strange thing: The exe created by LabVIEW might be no-acitve status anytime when my customer use it to get current data from 6485 and product SN from a Bar code scanning gun then recording data by NPIO .Unfortunately I have a long time business travel. My customer ask me to solve it -- he does not like using mouse to click the exe to active it. Hence I want to use winapi detect my UI's status and make it activity.But it does not work well .... Thanks. Add: When I click the desktop , the front panel will be as this status.The problem is that I still can't input keyboard. Another: I find that the focuse threat should be the UI THREAT ,But I can't get this vi's threat by GetCurrentThreat(). WindowSet.vi Test.vi Edited June 18, 2020 by jackscl Quote Link to comment
dadreamer Posted June 18, 2020 Report Share Posted June 18, 2020 (edited) Try to use this VI to get your window on top of the world: Set Calling VI Wnd Topmost & Active.vi This is the thread, where it came from. You may use it this way: wnd_test.vi Or you may invoke the SubVI at strictly specified intervals, you decide. Edited June 18, 2020 by dadreamer Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.