#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("菜单", 583, 227, 192, 124)
$Button1 = GUICtrlCreateButton("QQ聊天", 32, 24, 155, 73)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Button2 = GUICtrlCreateButton("QQ音乐", 216, 24, 155, 73)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Button3 = GUICtrlCreateButton("JJ比赛", 400, 24, 155, 73)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Button4 = GUICtrlCreateButton("QQ在线电影", 32, 128, 155, 73)
GUICtrlSetFont(-1, 18, 400, 0, "MS Sans Serif")
$Button5 = GUICtrlCreateButton("QQ游戏", 216, 128, 155, 73)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Button6 = GUICtrlCreateButton("网络电视", 400, 128, 155, 73)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
RunWait("C:\Program Files\Tencent\QQ\Bin\QQ.exe"); 打开QQ程序
Case $Button2
RunWait("D:\游戏\QQ音乐\QQMusic.exe"); 打开QQ音乐
Case $Button3
RunWait("D:\游戏\JJ比赛\TKLobby.exe"); 打开JJ比赛
Case $Button4
RunWait("D:\游戏\QQLive\QQLive.exe"); 打开QQ在线电影
Case $Button5
RunWait("D:\游戏\QQGAME\QQGame.exe"); 打开QQ游戏
Case $Button6
RunWait("D:\游戏\uusee\UUSeePlayer.exe"); 打开网络电视
EndSwitch
WEnd
顺便问下这个脚本,比如点开QQ后,如果QQ不关这个菜单也无法关闭。这个要加什么呢?