valenfor wrote:
I have a form I made as a splash screen with two buttons
Assuming this window was created with the GUI command, there are a few options:
1) Use
Gui -SysMenu to avoid having an X button in the title bar (use -Caption if you don't want a title bar at all).
2) Leave the X button present but distinguish between events:
GuiClose:
MsgBox You must press one of the buttons.
; And leave the window open to force a choice.
return
ButtonAgree:
Gui Cancel ; Hide the window.
MsgBox The installation will now proceed.
return
ButtonDisagree:
ExitApp