From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I click mouse programmatically??

Hello guys:
 
Now I want to call a third-part EXE software ,  I only can open it use LabVIEW and I want operate the cursor move and click on the EXE interface to finish it automatically.
Can any body can help me on how to click mouse programmatically?
Thanks in abvance!!!
 
Steven
0 Kudos
Message 1 of 4
(3,301 Views)
If you search the forums, you should find some examples for using the SetCursorPos and Mouse_event windows API functions, which should help you.

___________________
Try to take over the world!
Message 2 of 4
(3,296 Views)
Here is an example that will position the cursor to the upper left of the desktop (where 'My Computer' generally is) and then double click in turn opening the file.  Hope it helps
0 Kudos
Message 3 of 4
(3,266 Views)
Thanks for your help!!!
0 Kudos
Message 4 of 4
(3,238 Views)