Palmerj Posted March 26, 2014 Share Posted March 26, 2014 Hello, I have a install wrapper launched from SCCM that presents the user with a welcome dialog. The problem is that the dialog always ends up behind the SCCM Software Center dialog. I would like to make my welcome dialog pop up in front of everything. The dialog has graphics so MsgBox won't do. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> GUICreate("Welcome Dialog", 440, 340, -1, -1, $DS_MODALFRAME,$WS_EX_DLGMODALFRAME) GUISetBkColor(0xFFFFFF) GUISetState() I've tried most styles and extended styles with no results. SCCM always sends it to the background. Any suggestions greatly appreciated. Link to comment Share on other sites More sharing options...
reb Posted March 26, 2014 Share Posted March 26, 2014 this works for me #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> HotKeySet("{ESC}","Done") GUICreate("Welcome Dialog", 440, 340, -1, -1, $DS_MODALFRAME,BitOR($WS_EX_TOPMOST,$WS_EX_DLGMODALFRAME)) GUISetBkColor(0xFFFFFF) GUISetState() While 1 Sleep(100) WEnd Func Done() Exit EndFunc REB MEASURE TWICE - CUT ONCE Link to comment Share on other sites More sharing options...
Solution Palmerj Posted March 26, 2014 Author Solution Share Posted March 26, 2014 Ah... (in Agent Maxwell Smart's best voice) "The old BitOr trick." Why didn't I think of that one? Thanks! Link to comment Share on other sites More sharing options...
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