找回密码
 加入
搜索
查看: 1473|回复: 1

[AU3基础] GUICtrlCreateCheckbox ( "文本", ......... )怎么读取文本内容

[复制链接]
发表于 2013-11-26 17:11:49 | 显示全部楼层 |阅读模式
菜鸟提问GUICtrlCreateCheckbox ( "文本", .........  )怎么读取文本内容,,如题。
发表于 2013-11-26 17:26:17 | 显示全部楼层
菜鸟提问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
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-10-6 12:28 , Processed in 0.076589 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表