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,705 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,686 Views)

Thank you, Mike

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