Hallo Chip,
wie wäre es damit:
Spoiler anzeigen
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
#include <ButtonConstants.au3>
#Region ### START Koda GUI section ### Form=
$Desktop = GUICreate("Desktop", @DesktopWidth/2, @DesktopHeight/2, 0, 0, BitOR($WS_POPUP, $WS_VISIBLE), BitOR($WS_EX_CONTROLPARENT,$WS_EX_WINDOWEDGE))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
GUICtrlCreateButton("Test", 100, 80, 60, 60, BitOR($BS_NOTIFY, $WS_GROUP, $WS_TABSTOP, $WS_VISIBLE, $BS_FLAT))
[/autoit] [autoit][/autoit] [autoit]#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", @DesktopWidth/4, @DesktopHeight/4, 250, 50, BitOR($WS_MINIMIZEBOX, $WS_SYSMENU, $WS_CAPTION, $WS_GROUP, $WS_VISIBLE, $WS_BORDER), $WS_EX_MDICHILD, $Desktop)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
mfg (Auto)Bert