本帖最后由 风中柳 于 2011-4-29 09:42 编辑
在列表框选择“1”后总是一直不停打开程序,没有办法关闭!不会结束!怎么修改才能解决?
#NoTrayIcon
#include <GUIConstantsEx.au3>
#include <GuiButton.au3>
#include <GUIConstants.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ComboConstants.au3>
#include <GuiComboBoxEx.au3>
#include <TabConstants.au3>
#include <GUITab.au3>
#include <ListviewConstants.au3>
#Include <GuiListView.au3>
#include <ListBoxConstants.au3>
#include <Process.au3>
#include <GuiListView.au3>
#include <Constants.au3>
Opt('MustDeclareVars', 0 )
$Form1=GUICreate("常用小工具",360,300) ; 创建一个居中显示的 GUI 窗口
$tabCombo1 = GUICtrlCreateCombo("外部程序", 20, 250, 80, 20, $CBS_DROPDOWNLIST)
GUICtrlSetData($tabCombo1, "1|2", "item1")
GUISetState(@SW_SHOW, $Form1); 显示一个空白的窗口
While 1
$msg = GUIGetMsg()
Select
Case $msg = $GUI_EVENT_CLOSE
ExitLoop
Case $tabCombo1
If GUICtrlRead($tabCombo1) = "1" Then
ShellExecute("mstsc.exe", "", "", "open", @SW_MAXIMIZE)
EndIf
EndSelect
WEnd |