UnderGround Forums
 

ITGround >> Locking an IE window to the foreground?


6/14/10 1:52 AM
Ignore | Quote | Vote Down | Vote Up
tenchu
6 The total sum of your votes up and votes down Send Private Message Add Comment To Profile

Member Since: 1/1/01
Posts: 8342
 
Is it possible to lock an IE window to the foreground? I want to watch a World Cup match online in a shrunken window, off to the side, while being able to surf the net in another window.

Possible?
7/6/10 12:22 PM
Ignore | Quote | Vote Down | Vote Up
Johnny Walls
Send Private Message Add Comment To Profile

Member Since: 1/1/01
Posts: 6473
I know this is old - but the World Cup is still going on so I'll answer this one LOL

Use a little program called PowerMenu. It doesn't even have to be installed. I've used it for years and years...

http://majorgeeks.com/PowerMenu_d87.html

Power Menu is a small app the author wrote that adds Always On Top, Minimize To Tray, Priority and Transparency sub menus.

7/10/10 5:41 PM
Ignore | Quote | Vote Down | Vote Up
theseanster
267 The total sum of your votes up and votes down Send Private Message Add Comment To Profile

Edited: 07/10/10 5:42 PM
Member Since: 5/13/02
Posts: 15721
 I could write you an ActiveX component that could do it but there's no way without having Win32 API access to call BringWindowToTop(). I tried creating an HTA and using setInterval to create a WScript Shell and use AppActivate, but all that will do is blink the window at best...and even that behaviour probably changes depending on your OS version (XP is probably different than Win7, etc)


var wshShell = new ActiveXObject("WScript.Shell");

    window. = function () {
        window.resizeTo(600, 600);
        window.moveTo(0, 0);
        window.setInterval(GoGoTop, 500);
    }

    function GoGoTop() {
        wshShell.AppActivate("thingy.hta");
        }   
<hta:application applicationname="thingy.hta" 
border="thick"
borderstyle="normal" 
caption="thingy.hta" 
contextmenu="yes" 
maximizebutton="yes" 
minimizebutton="yes" 
navigable="yes" 
scroll="no" 
selection="no" 
showintaskbar="yes" 
singleinstance="yes" 
sysmenu="yes" 
version="1.0" 
windowstate="normal">
 

Reply Post

You must log in to post a reply. Click here to login.