I have a self-made fullscreen application for Windows 7 written in C++ which should run for a long time on its own as a public presentation.
Problem is, there are several applications or drivers or Windows itself that steal focus from time to time and/or especially at system startup. Result is: My fullscreen application gets minimimized.
It is very annoying and nearly impossible to always find out which things you have to deactivate to prevent that. Especially because those focus stealing things are sometimes needed, e.g. touchscreen drivers.
What can I do to prevent losing focus?
Or even better: How can I prevent other applications from stealing focus - I remember there once was such a setting in TweakUI for Windows XP.
Just press CTRL + SPACE on whatever window you want to stay on top. If it does not match mine, when you right-click, choose Open with and Choose another app.
In computing, focus stealing is a mode error occurring when a program not in focus (e.g. minimized or operating in background) places a window in the foreground and redirects all keyboard input to that window.
To make the active window always on top, press Ctrl + Spacebar (or the keyboard shortcut you assigned). Press the keyboard shortcut again to disable “always on top” for the active window. For script options, right-click on the AutoHotkey icon in the system tray.
Tweak UI does it by changing the SPI_SETFOREGROUNDLOCKTIMEOUT
. You can combine this with LockSetForegroundWindow
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With