tags:

views:

18

answers:

2

How do I set the position of a third party program,using vbscript,to always display at a specific position on the screen?

+1  A: 

VBScript and Windows Script Host don't have this functionality out of the box, so the short answer is "You can't".

The long answer is: If you really need to do this, you can use a third-party tool for this purpose, such as AutoIt. You could also write a custom utility (in C++, C# with PInvoke etc) that will utilize the appropriate Windows API functions (FindWindow, SetWindowPos etc) and call it from your script.

Helen
A: 

I don't think it will be possible using VBScript. As Helen mentioned, it could be done with AutoIt or in C++, C#, etc.

Using AutoIt, you could either write a script that always ran, and checked to see if the Window of the third party app exists, and then move it to the location you desire... Or better, create a launcher script to start the third party application and place it at the exact location. If you can't install AutoIt on all the pc's this will be running on, you can also compile the script to a stand alone exe.

JohnForDummies