From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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: 

Launch .exe application and intialize its position and size

Solved!
Go to solution

How can I use LabVIEW to launch an .exe application such as on screen keyboard and intialize its position and size?

I am using Windows XP system.

I know I can use System Exec.vi to launch an exe application and close it, but how can I control its position such as running in the right-top corner when it is launched?

0 Kudos
Message 1 of 3
(2,703 Views)
Solution
Accepted by topic author RogerLu

Hi RogerLu,

you can use the win API (user32.dll) to get the handle of the window. If you have the handle, then you can move the window with "moveWindow" function.

 

Mike

Message 2 of 3
(2,684 Views)

Thank you, Mike

0 Kudos
Message 3 of 3
(2,670 Views)