views:

19

answers:

3

Hello,

I have a Win7 PC in use as part of an experiment control system. The experiment in question uses 4 windows simultaneously, and I would like to find away to open, position and size these 4 windows with a script.

The script would run at start up, so that the newly booted PC presents the user with the four windows as default.

Obviously I can use a batch file in the startup folder to open windows and run applications, but is there a way to specify the layout of these windows?

Many thanks

Si

A: 

I can use a batch file to open the apps, then run WiLMA to relocate them

sipickles
+1  A: 

Assuming that you have access to a scripting language that supports making calls to Windows API functions it shouldn't be too hard. Otherwise I'd suggest writing a small executable in some language (at least any of C++, C# or VB.Net would all work fine) and have that do it.

You could use FindWindow, as described here, to find the windows and MoveWindow, as described here, to move them around.

ho1
python win32api is my choice, thanks
sipickles
A: 

I use an AutoHotkey script to set up all my environment (around 7 windows in 3 different virtual screens), works pretty well. You can set the location of windows etc.

raticulin