Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X


Superimposing one GUI on top of another?

  • Please log in to reply
1 reply to this topic

#1 mcmallette2



  • New Members
  • 1 posts

Posted 03 February 2012 - 02:36 AM

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?

#2 Aipion



  • Banned (NOT IN USE)
  • 200 posts

Posted 03 February 2012 - 08:37 AM

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 Aipion, 03 February 2012 - 04:03 PM.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users