|
本帖最后由 you74222 于 2012-1-16 09:25 编辑
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 444, 192, 124)
$Combo1 = GUICtrlCreateCombo("", 104, 56, 409, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
$uur=""
gengxin($uur)
Func gengxin(ByRef $uur)
$URLL=IniReadSection("URL.INI","URL")
If @error Then
$sData = "1=http://www.sogou.com/sogou?query=" & @LF & "2=http://www.baidu.com/s?wd=" & @LF & "3=http://www.google.cn/search?hl=zh-CN&q="& @LF & "4=http://www.gougou.com/search?search="
IniWriteSection("URL.INI","URL", $sData)
Else
if $URLL[0][0] >1 Then
For $i = 1 To $URLL[0][0]-1
$uur=$uur&$URLL[$i][1]&"|"
Next
$uur=$uur&$URLL[$URLL[0][0]][1]
Else
$uur=$uur&$URLL[$URLL[0][0]][1]
EndIf
EndIf
GUICtrlSetData ($Combo1,$uur,$URLL[1][1])
EndFunc
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
其中if $URLL[0][0] >1 Then 里$URLL[0][0] 这个不用定义吗?不是要数组要DIM来定义的吗,这个是本论坛里的一个例子,学习中。。。。 |
|