沒跑代碼...不過我想不斷印出 $line 應該就可以了吧?
使用 GUICtrlSetData 套用下面GUI.
GUI 供你參考:#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 321, 438, 192, 124)
$Edit1 = GUICtrlCreateEdit("", 8, 40, 297, 385)
GUICtrlSetData(-1, "Logs will display here.")
$Label1 = GUICtrlCreateLabel("DOS Display", 8, 8, 100, 17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Sleep (5000)
GUICtrlSetData($Edit1, "Write your messages." & @CRLF, 1)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Koda tool 可用於產生GUI介面:
|