Firstly. Sorry if it looks dumb, I’m completely non-expert it this question, BUT
script worked in 2.92, but not in 2.93+
What it does - it makes blender console window always on top.
def set_system_console_topmost(top):
import ctypes
HWND_NOTOPMOST = -2
HWND_TOPMOST = -1
SWP_NOMOVE = 0x0002
SWP_NOSIZE = 0x0001
SWP_NOZORDER = 0x0004
ctypes.windll.user32.SetWindowPos(ctypes.windll.kernel32.GetConsoleWindow(),
HWND_TOPMOST if top else HWND_NOTOPMOST,
0,0,0,0, SWP_NOMOVE | SWP_NOSIZE)
if __name__ == '__main__':
set_system_console_topmost(True)
#set_system_console_topmost(False)
P.S. be careful in 2.93+ in some cases it hangs blender