Hi,

I want to open several programs at once and specify their window size
and screen position (just from the command shell or a quick start
shortcut). I know how to open the programs with for example a file
containing:

set ifShell = CreateObject("WScript.Shell")
ifShell.run """C:\Program Files\TADS 3\htmltdb3.exe""",1

However I have not been able to figure out how to set the window size
and screen position. I've read various references to window.open,
resizeto, etc. but nothing seems to work by trial and error and I
haven't found a basic tutorial on this procedure. Does anyone have
some pointers?

many thanks, George

Re: how to open a file and set window properties? by Ayush

Ayush
Tue Jan 30 00:29:47 CST 2007

Replied to [George Oliver]s message :
> Hi,
>
> I want to open several programs at once and specify their window size
> and screen position (just from the command shell or a quick start
> shortcut). I know how to open the programs with for example a file
> containing:
>
> set ifShell = CreateObject("WScript.Shell")
> ifShell.run """C:\Program Files\TADS 3\htmltdb3.exe""",1
>
> However I have not been able to figure out how to set the window size
> and screen position. I've read various references to window.open,
> resizeto, etc. but nothing seems to work by trial and error and I
> haven't found a basic tutorial on this procedure. Does anyone have
> some pointers?
>
> many thanks, George
>

Look at the thread named "Script to set folder attributes?" , onDate : "1/29/2007
11:56 AM"

--
â?? Ayush
-------------
Search - www.Google.com | Wikipedia - http://en.wikipedia.org
Snip your long urls - http://snipurl.com/
-------------

Re: how to open a file and set window properties? by mayayana

mayayana
Tue Jan 30 09:08:02 CST 2007


The window object you're using is not a Windows
window. It's an IE window. Folder windows are
officially IE windows, so you can affect an IE window
or an Explorer folder window. Program windows
are not accessible that way.

>
> I want to open several programs at once and specify their window size
> and screen position (just from the command shell or a quick start
> shortcut). I know how to open the programs with for example a file
> containing:
>
> set ifShell = CreateObject("WScript.Shell")
> ifShell.run """C:\Program Files\TADS 3\htmltdb3.exe""",1
>
> However I have not been able to figure out how to set the window size
> and screen position. I've read various references to window.open,
> resizeto, etc. but nothing seems to work by trial and error and I
> haven't found a basic tutorial on this procedure. Does anyone have
> some pointers?
>
> many thanks, George
>



Re: how to open a file and set window properties? by Ed

Ed
Tue Jan 30 10:19:46 CST 2007

Is there an on-line manual or tutorial that explains how to work with folder
and program windows?

"mayayana" <mayayana1a@mindspring.com> wrote in message
news:mbJvh.16903$yx6.796@newsread2.news.pas.earthlink.net...
>
> The window object you're using is not a Windows
> window. It's an IE window. Folder windows are
> officially IE windows, so you can affect an IE window
> or an Explorer folder window. Program windows
> are not accessible that way.
>
>>
>> I want to open several programs at once and specify their window size
>> and screen position (just from the command shell or a quick start
>> shortcut). I know how to open the programs with for example a file
>> containing:
>>
>> set ifShell = CreateObject("WScript.Shell")
>> ifShell.run """C:\Program Files\TADS 3\htmltdb3.exe""",1
>>
>> However I have not been able to figure out how to set the window size
>> and screen position. I've read various references to window.open,
>> resizeto, etc. but nothing seems to work by trial and error and I
>> haven't found a basic tutorial on this procedure. Does anyone have
>> some pointers?
>>
>> many thanks, George
>>
>
>



Re: how to open a file and set window properties? by mayayana

mayayana
Tue Jan 30 10:50:34 CST 2007

Folder windows are the IE object model.
They're IE objects. And actually the window
content is a Document object. Unfortunately, if
you use XP there are severe limitations on
access to that. In other Windows versions
you can design your own folder window as a
webpage, adding any functionality you want.
And you can auto-size windows through that
webpage.
With XP there are more security restrictions
and you're blocked from using a global folder
style ..... but folder Document objects is really
a different topic from what you want to do, I think.

There's not much you can do with regular program
windows that don't have an automation interface.
In other words, if the program has not been designed
to be friendly to script (like IE, MS Word, etc.)
then it's "private". You can just do things like
use SendKeys to click buttons.

> Is there an on-line manual or tutorial that explains how to work with
folder
> and program windows?
>




Re: how to open a file and set window properties? by Ed

Ed
Tue Jan 30 11:42:18 CST 2007

*urf!* Sounds like a whole lot more than the piddly stuff I want to play
around with. If I stumble on to something, maybe I'll see about it;
otherwise I think I'll leave it for the pros.

Ed

"mayayana" <mayayana1a@mindspring.com> wrote in message
news:uHKvh.16935$yx6.66@newsread2.news.pas.earthlink.net...
> Folder windows are the IE object model.
> They're IE objects. And actually the window
> content is a Document object. Unfortunately, if
> you use XP there are severe limitations on
> access to that. In other Windows versions
> you can design your own folder window as a
> webpage, adding any functionality you want.
> And you can auto-size windows through that
> webpage.
> With XP there are more security restrictions
> and you're blocked from using a global folder
> style ..... but folder Document objects is really
> a different topic from what you want to do, I think.
>
> There's not much you can do with regular program
> windows that don't have an automation interface.
> In other words, if the program has not been designed
> to be friendly to script (like IE, MS Word, etc.)
> then it's "private". You can just do things like
> use SendKeys to click buttons.
>
>> Is there an on-line manual or tutorial that explains how to work with
> folder
>> and program windows?
>>
>
>
>