11-13-2017 04:04 PM
I am using the "call library function node" to make a mouse click with LabView. It works when clicking in some other programs but not in all programs. Is there another mouse clicking function that does work in all programs or an option in the call library function node that can make it possible to click in all programs.
11-13-2017 06:13 PM
Are you using User32.dll to perform the simulated clicks?
http://digital.ni.com/public.nsf/allkb/9BB3211F3469623649257360000E272C
11-14-2017 02:40 AM
Yes i am using that
11-14-2017 04:40 AM
The most important thing is that only the window which has currently the key focus, will actually receive any keyboard and mouse events. So you will somehow need to make sure that the window you intend to receive the mouse click is the front most window.
You should also make sure to configure the Call Library Node to run in any thread and not the UI thread to avoid certain synchronization issues while LabVIEW may execute in the UI thread but the most important thing is to make sure that the right window is activated first.
11-14-2017 05:08 AM
I did both try any tread and UI tread with just the Window open of the program where I want to click in to make it the key focus but doesn't work. The mouse move to the location but it won't click.