12-19-2011 06:32 AM
I am using the system exec.vi to open an executable but want to control where it opens on the front screen and make sure it stays on top an in the same place each time I open the program, how do I achieve this?
12-19-2011 08:21 AM - edited 12-19-2011 08:21 AM
Is this some third-party executable? If so, Windows will typically control this unless the application was written in such a way that it stored its last position and then places itself into that same position. You can use the Windows API to set the position of windows. The Windows API Function Utilities (32-bit) for LabVIEW contains a "Move Window" VI that you can use.
Note: Obviously I'm assuming you're using Windows. If you're using another operating system, there should be equivalent functions available.