Jump to content

Recommended Posts

Posted

You need to set another window as the parent (last parameter of GuiCreate), like the desktop or the hidden autoit window. Here's example for both:

GUICreate("Test1", 200, 100, -1, -1, -1, -1, WinGetHandle("Program Manager"))

GUISetState()

Do
    Sleep(10)
Until GUIGetMsg() = -3


AutoItWinSetTitle("WeDontWantToHaveTheSameNameAsOtherScripts")
GUICreate("Test2", 200, 100, -1, -1, -1, -1, WinGetHandle(AutoItWinGetTitle()))

GUISetState()

Do
    Sleep(10)
Until GUIGetMsg() = -3
Posted

Use $WS_EX_TOOLWINDOW as extended style if it fits your needs.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 625, 443, 192, 124, -1, BitOR($WS_EX_TOOLWINDOW,$WS_EX_WINDOWEDGE))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

    EndSwitch
WEnd

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
×
×
  • Create New...