Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66748

Having issues with setting the "Active Window"

$
0
0

Hello List,

 

I've got a LV installation that runs three LV created EXE's simultaneously. In the "top level" application, the user enters a product model number (by way of a PS2 barcode scanner) to be tested, and that application looks at our network to see if there is a test recipe for the product. If there is, it hides and moves itself to the bottom and maximizes and moves to the top EXE number two. On EXE number two, the user is supposed to scan the product serial number. But on occasion, EXE number two is not the active window, even though it is the frontmost and maximized, so the scan from the barcode reader doesn't go into the field. (Looking at the Taskbar at the bottom of the screen, the task for the frontmost & maximized EXE is not "depressed")  A simple mouse click anywhere on the window will make it active, but the users don't have a mouse (or keyboard) (I am able to "remote in" from another computer using a product line "PC Anywhere). I have tried using the "mouse_event" from user32.dll in a "Call Library Function Node", but that doesn't seam to work reliably.

So my first question is, will the "mouse_event" from user32.dll even fire if my computer doesn't have a mouse plugged in?

And, if not, does anyone have any better ideas?

 

Thanks in advance,

Mike


Viewing all articles
Browse latest Browse all 66748

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>