#AutoIt3Wrapper_Change2CUI=Y 编译为cui
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 449, 192, 114)
$Label1 = GUICtrlCreateLabel("Label1", 48, 64, 204, 57)
$Button1 = GUICtrlCreateButton("Button1", 296, 80, 81, 33)
If $CmdLine[0] = 0 Then
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
Else
If $CmdLine[1] = "-v" Then
ConsoleWrite("版本 v0.0.1")
Else
ConsoleWrite("参数错误")
EndIf
EndIf
|