Context:
I have a small script that alerts the user of an event by creating a message box using the Windows in built message box (Ref: MSDN MessageBox) which is imported using ctypes
. This script is for Windows OS.
Problem:
Currently, the message box will appear on top of all other windows, but because it's such a small window, a user can easily click onto another window which could hide the message box.
What I want
I want to keep the message box always on top of other windows. If this can't be done, then alternatively is there a way to increase the dimensions of the message box?
Example Code:
import ctypes
ctypes.windll.user32.MessageBoxW(0, text, title, 0x00010000)