06-10-2014 01:05 PM
Hi,
I am using labview to programmatically set up features on an application.
What I want to do is similar to how labview has key focus to a control or able to set attribute on the web browser. However, I want to do this to an application without having to manually click on them or use the keyboard. Any ideas how to do this?
06-10-2014 01:08 PM
See if you can change the values of the control using the keyboard then simulate those keys in LabVIEW. Do things like activate window, hit tab 4 times, hit spacebar, then do the same using windows DLLs. Here's one example.
http://www.ni.com/example/28711/en/
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
06-10-2014 01:18 PM
Hi Hooovahh,
I have been able to do that usering the key_event in the call library function and simulate the keyboard. However in some cases I am not able to tab into features on the application or use microsoft shortcuts to select. And I used set mouse position and perform mouse click commands using the call library function to get get around this. However, I am looking for a better way in the case of transfering my code because when the application is used on other computers they may have different resolutions and setting the mouse position and right clicking would not be an accurate solution.
06-10-2014 01:26 PM
Is the application created by LabVIEW?
06-10-2014 01:43 PM
06-10-2014 04:01 PM
I am using labview to run the application but it is not created by it. AutoIT seems like it would solve the problem. Do you have any helpful links that shows how to do this with AutoIT?