Internet Explorer always in the foreground

Asked

Viewed 456 times

1

I am using IE in Kiosk mode and an error appeared from another app in front. What I would like to do is that if any other window appears in the Windows, does not appear above the IE window, always leaving it in the foreground.

1 answer

1

You can leave the IE window in always forward mode through windows library.

If you want a program that does this for you, I suggest using the Turbotop. It is quite simple to use, just install and select in the icon tray which window you want to be always in front of.

If you want to do this programmatically, use the Setwindowpos function from the windows library: Setwindowpos Function - MSDN

You can use the windows library in any language, I will give an example of the use in python, with the module Pywin32, putting the Notepad window always at the top:

import win32gui
import win32con

hwnd = win32gui.FindWindow('Notepad', None)
win32gui.SetWindowPos(hwnd, win32con.HWND_TOPMOST, 100, 100, 300, 200, 0) 

Source of the code: Stackoverflow - Set Another program to Always be on top?

Browser other questions tagged

You are not signed in. Login or sign up in order to post.