找回密码
 加入
搜索
查看: 2397|回复: 3

如何获取某window应用程序中组合框中的所有选项

[复制链接]
发表于 2008-6-13 23:36:51 | 显示全部楼层 |阅读模式
如何获取某window应用程序中组合框中的所有选项,我用了_GUICtrlComboBox_GetList 和_GUICtrlComboBox_GetListArray 都不行,请各位帮忙解决。
发表于 2008-6-14 00:39:48 | 显示全部楼层
我试可以,不知道你要获取的组合框是否很特殊。试试我这个,也许能帮你到。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2010-6-17 15:15:24 | 显示全部楼层
用这段代码生成一个EXE文件,运行之,然后用信息获取工具,看能否获取其中的复选框、单选框、按钮1的ID。
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_outfile=C:\Documents and Settings\Administrator\桌面\001.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 215, 245, 192, 124)
$Group1 = GUICtrlCreateGroup("Group1", 8, 24, 193, 209)
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 16, 40, 121, 33)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 16, 72, 129, 25)
$Checkbox3 = GUICtrlCreateCheckbox("Checkbox3", 16, 104, 137, 17)
$Radio1 = GUICtrlCreateRadio("Radio1", 16, 136, 153, 17)
$Radio2 = GUICtrlCreateRadio("Radio2", 16, 160, 161, 17)
$Radio3 = GUICtrlCreateRadio("Radio3", 16, 184, 169, 17)
$Button1 = GUICtrlCreateButton("Button1", 32, 200, 129, 25)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit

        EndSwitch
WEnd

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2010-6-17 18:39:53 | 显示全部楼层
路过,,学习下。。闪人
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-22 03:34 , Processed in 0.087926 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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