如何选择下拉列表的某一项?
在运行某个应用程序的时候,怎么选择下拉列表的某一项?如图片,我怎么能直接选择Custom ? 希望大家帮帮忙,我很着急! #include <GUIConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 290, 150, 192, 124)
$Combo1 = GUICtrlCreateCombo("", 64, 56, 169, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "这是第一个|2|3|4|5|6")
ControlSetText($Form1,"",$Combo1,"2")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
代码如上 回复 3# lanfengc
谢谢啊!
如果是某个应用程序,自动运行,如何直接选择custom执行下一步啊? ControlSetText($Form1,"",$Combo1,"2")
看看这个函数的用法。 代码如上
lanfengc 发表于 2010-5-5 21:08 http://www.autoitx.com/images/common/back.gif
你这样解释大家不都明白了吗?谢谢,你是好人。 很好,记下!
页:
[1]