问一个选择执行的问题
本帖最后由 botanycc 于 2009-5-22 15:43 编辑选择1就打开1.txt,选择2就打开2.txt,这里怎么搞,帮下,谢谢
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 303, 70, 193, 125)
$Combo1 = GUICtrlCreateCombo("选择", 18, 18, 145, 25)
GUICtrlSetData(-1, "1|2")
$Button1 = GUICtrlCreateButton("打开", 190, 20, 75, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd Case $Button1
$sCombo1 = GUICtrlRead($Combo1);读出下拉的内容
FileOpen($Combo1,1);打开相应文件 谢谢,学会了,哈哈
页:
[1]