Hi, Following >this example. #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <WinAPI.au3> #include <Constants.au3> Run("cmd") Local $hCmd = WinWait("[CLASS:ConsoleWindowClass]", "", 10) If $hCmd = 0 Then Exit 1 Local $aOriPos = WinGetPos($hCmd) Local $hGUI = GUICreate("MyGUI", $aOriPos[2], $aOriPos[3] + 200, -1, -1, BitOR($GUI_SS_DEFAULT_GUI, $WS_SIZEBOX)) GUICtrlCreateLabel("some buttons here", 10, 10) GUIRegisterMsg($WM_SIZE, "WM_SIZE