Jump to content

Superimposing one GUI on top of another?


mcmallette2
 Share

Recommended Posts

I've got a couple of scripts that I'm wanting to work together somewhat. One is a login script, which covers the entire screen. The other is a roll-out script that is supposed to run on first boot. the roll-out script is often used as a fix-all script, restoring most settings back to "default", and so won't always be run from within the login script.

I've got the roll-out set to always on top, so that it will always pop up over the login script. Unfortunately, the way I'm doing it leaves a black border around the window.

$loginwin = GUICreate("BootSplash", 1024, 768)
GUISetBkColor(0x0000FF)

RunWait(rollout.exe)

If $cmdline[1] = "-login" Then
. . . .$rollout = GUICreate("Roll-Out", 128, 32, -1,-1,"", $WS_EX_TOPMOST+$WS_EX_TOOLWINDOW)
. . . .GUISetBkColor(0x0000FF)
Else
. . . .$rollout = GUICreate("Roll-Out", 128, 32, -1,-1, $WS_POPUPWINDOW,$WS_EX_TOPMOST)
EndIf

Any suggestions?

Link to comment
Share on other sites

When you use $WS_POPUPWINDOW it will show a black border. if you use only $WS_POPUP then it won't. :)

Fixed Code:

$rollout = GUICreate("Roll-Out", 128, 32, -1,-1, $WS_POPUP,$WS_EX_TOPMOST)
Edited by Guest
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...