本帖最后由 虎虎虎 于 2012-2-5 21:24 编辑
最简单的方法:#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 415, 122, 192, 124)
$Label1 = GUICtrlCreateLabel("你当前使用的操作系统:", 8, 32, 127, 17)
$Label2 = GUICtrlCreateLabel(@OSVersion, 144, 32, 55, 17)
GUICtrlSetColor(-1, 0xFF0000)
$Label3 = GUICtrlCreateLabel("系统版本:", 220, 32, 127, 17)
$Label4 = GUICtrlCreateLabel(@OSServicePack, 300, 32, 100, 17)
GUICtrlSetColor(-1, 0xFF0000)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
|