lee321987 Posted May 4, 2019 Posted May 4, 2019 Sometimes when I call several MsgBox's they start popping up under other windows, which the requires ALT + TAB or click the taskbar icon. I just wanted to share this workaround: Just add a simple GUI in your program: #include <GUIConstantsEx.au3> $Form1 = GUICreate("Form1", 1, 1, 0, 0) GUISetState(@SW_SHOW) The GUI window size here is 1x1 so it will be nearly invisible, and at the top-left of your screen. It seems as long as that GUI is there all MsgBox's appear on top! I only tend to create several MsgBox's in a row when I'm actually writing and testing scripts, so the GUI being there is no big deal (I just remove/comment the GUI creation right before I build the .EXE). Have a great day!!!
Exit Posted May 4, 2019 Posted May 4, 2019 There is a simpler method #include <MsgBoxConstants.au3> MsgBox($MB_TOPMOST, "Topmost Message", "This message box will always be on top.") FrancescoDiMuro, supraaxdd and lee321987 2 1 App: Au3toCmd UDF: _SingleScript()
lee321987 Posted May 5, 2019 Author Posted May 5, 2019 18 hours ago, Exit said: There is a simpler method Well that's easier. Lol. Thank you. supraaxdd and Exit 2
supraaxdd Posted May 9, 2019 Posted May 9, 2019 On 5/5/2019 at 6:25 AM, lee321987 said: Well that's easier. Lol. Thank you. Honestly, any help is good. I think you did the good thing of posting because, for example: I wouldn't have known any of this in the first place. Regards, Supra FrancescoDiMuro 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now