Forum Moderators: open

Message Too Old, No Replies

Controlling the size of a Window

         

VinnyWolf

10:57 pm on Aug 23, 2004 (gmt 0)



I have read several posts in this forum about how to control the size of a new window that pops up from a hyperlink, but I am looking to open a new window when the CD is inserted. Is there anyway to control the size of a window that opens from a autorun.bat file?

Thanks,

Vinny

Bernard Marx

11:25 pm on Aug 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you mean the DOS command window? [dunno]
Or is the .bat file launching IE? : iexplore.exe -k url
..will give you fullscreen mode.

But since this is the Javscript forum, the .bat could run a .js or .wsf file.

.... openIE.js ....


function openIE(url,L,T,W,H)
{
var IE = WScript.CreateObject("InternetExplorer.Application");

IE.left = L;
IE.top = T;
IE.width = W;
IE.height = H;
IE.menubar = 1;
IE.toolbar = 1;
IE.navigate (url);
IE.visible = 1;
while (IE.Busy) {} // wait till ready

return IE;
}