Jump to content
Sign in to follow this  
Palmerj

Need true system modal Window

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...