it's something I'm going to look into once I have everything else on my to do list finished... almost there (and almost ready for an update
)
but if u have a good method of adding a gui front end to batch files I'd love to see an example so I can learn from it, thx!
I will create some examples
CODE#include
#include
#include
#include
#include
$Form1 = GUICreate("Form1", 200, 150, -1, -1)
$InputID = GUICtrlCreateInput("WDMP", 64, 16, 89, 21, BitOR($ES_CENTER, $ES_UPPERCASE, $ES_AUTOHSCROLL))
$LabelID = GUICtrlCreateLabel("ID:", 16, 16, 18, 17)
$Download = GUICtrlCreateButton("Download", 16, 80, 81, 33, $WS_GROUP)
$InputVersion = GUICtrlCreateInput("*", 64, 45, 89, 21, BitOR($ES_CENTER, $ES_UPPERCASE, $ES_AUTOHSCROLL))
$LabelVersion = GUICtrlCreateLabel("Version:", 16, 47, 42, 17)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Download
$iID = GUICtrlRead($InputID)
$iVer = GUICtrlRead($InputVersion)
Local $nusd = Run(@ScriptDir & '\nusd.exe ' & $iID & ' ' & $iVer, @ScriptDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD)
Local $LINEsplit = ""
Local $OUTsplit = ""
While 1
Sleep(1)
$LINEsplit = StdoutRead($nusd)
If @error Then ExitLoop
$OUTsplit &= $LINEsplit
WEnd
MsgBox(0, "", $OUTsplit)
EndSwitch
WEnd