- Window Positioning
- Posted by Moondog on October 28th, 2005
Is there a way to cause windows - like when opening Internet Explorer - to be
a specific size and to be located at a pre-determined place on the screen.
It seems that Windows XP Home and Pro both are making random choices about
where to put new windows and, sometimes their size.
--
D''Moondog
- Posted by ManyBeers on October 28th, 2005
"Moondog" wrote:
> Is there a way to cause windows - like when opening Internet Explorer - to be
> a specific size and to be located at a pre-determined place on the screen.
> It seems that Windows XP Home and Pro both are making random choices about
> where to put new windows and, sometimes their size.
> --
> D''Moondog
I think all you have to do is set it where you want it and close the window.
Next time you open program it will remember where it was.
- Posted by Ramesh, MS-MVP on October 28th, 2005
Use a javascript code, such as this one:
http://vlaurie.com/computers2/Articles/ietips.htm
BTW, for XP SP2, you need to wrap the code into a HTM file, and add the Mark
of the Web (MOTW) code:
Example: Courtesy of Tony Talmage
Create a local HTML file with the Window resizer code, such as the one
below:
<!-- saved from url=(0025)http://www.websiteurl.com -->
<html><head>
<title></title>
<script language="Javascript">
resizeTo(800,600);
moveTo((window.width-800)/2,(window.height-600)/2);
document.location.href = 'http://www.websiteurl.com';
</script>
</head>
<body>
</body></html>
Save the file locally (say "C:\home.html"). Now, set "C:\home.html" as the
Homepage in Internet Options. As the file home.html has the "Mark of the
web" (first-line), you can now bypass the lockdown restrictions in Windows
XP SP2, thus the Javascript can execute fine.
"Mark of the Web" comment - explained:
http://msdn.microsoft.com/library/de...rview/motw.asp
http://msdn.microsoft.com/security/p...wn_devimp.aspx
http://support.microsoft.com/?kbid=884322
--
Ramesh, Microsoft MVP
Windows XP Shell/User
Windows XP Troubleshooting
http://www.winhelponline.com
"Moondog" <Moondog@discussions.microsoft.com> wrote in message
news:B726A1BF-8308-40EE-BBDB-794BC712A681@microsoft.com...
> Is there a way to cause windows - like when opening Internet Explorer - to
> be
> a specific size and to be located at a pre-determined place on the screen.
> It seems that Windows XP Home and Pro both are making random choices about
> where to put new windows and, sometimes their size.
> --
> D''Moondog
- Posted by Ramesh, MS-MVP on October 28th, 2005
ManyBeers,
That'll preserve the Window size, but the initial window position will
always be random.
--
Ramesh, Microsoft MVP
Windows XP Shell/User
Windows XP Troubleshooting
http://www.winhelponline.com
"ManyBeers" <ManyBeers@discussions.microsoft.com> wrote in message
news:94011EB9-6369-4E6F-9AA1-FEAC49213BA2@microsoft.com...
>
>
> "Moondog" wrote:
>
>> Is there a way to cause windows - like when opening Internet Explorer -
>> to be
>> a specific size and to be located at a pre-determined place on the
>> screen.
>> It seems that Windows XP Home and Pro both are making random choices
>> about
>> where to put new windows and, sometimes their size.
>> --
>> D''Moondog
>
> I think all you have to do is set it where you want it and close the
> window.
> Next time you open program it will remember where it was.
- Posted by scrubber on October 28th, 2005
Generally speaking, if you resize the window to how you want it and then hold
down CTRL while you click the "Close" button, it will always resize to those
dimensions afterwards. But I don't know of a way to ensure the window opens
in a specific locations I regret to say.