Hello,
i made looping DOS script, that run few small batches.
Main script do things, create and stop processes, etc. Works well.
Now, my colleaugues and my boss, want a windows interface because we are in 2014,
DOS script are dead and other rubbish like this...
I want to allow people that using this script to stop/start, monitor processes, make maintenance,
directly from GUI, and not from command line.
My question, is possibile to embed DOS window in a gui ?
So i can maintain script
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