菜鸟提问GUICtrlCreateCheckbox ( "文本", ......... )怎么读取文本内容,,如题。
scorpio1102 发表于 2013-11-26 17:11 #include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 184, 115, 376, 221)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 24, 16, 97, 17)
$Button1 = GUICtrlCreateButton("Button1", 112, 72, 43, 25)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$_text = GUICtrlRead($Checkbox1, 1);读取GUICtrlCreateCheckbox上的文字
MsgBox(0, 0, $_text)
EndSwitch
WEnd
|