[已解决]新手发问 - 游戏选单关闭
本帖最后由 東影神煌 于 2011-12-28 14:37 编辑TraySetState(2)
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("00000", 350, 500, 100, 100)
$Button1 = GUICtrlCreateButton("11111", 0, 0, 350, 40)
GUICtrlSetFont(-1, 16, 800, 0, "")
$Button2 = GUICtrlCreateButton("22222", 0, 40, 350, 40)
GUICtrlSetFont(-1, 16, 800, 0, "")
$Button3 = GUICtrlCreateButton("33333", 0, 80, 350, 40)
GUICtrlSetFont(-1, 16, 800, 0, "")
$Button4 = GUICtrlCreateButton("44444", 0, 120, 350, 40)
GUICtrlSetFont(-1, 16, 800, 0, "")
$Button5 = GUICtrlCreateButton("55555", 0, 160, 350, 40)
GUICtrlSetFont(-1, 16, 800, 0, "")
$Edit1 = GUICtrlCreateEdit("", 0, 200, 373, 320)
GUICtrlSetData(-1, "Edit1"& @crlf & "123")
GUICtrlSetFont(-1, 12, 800, 0, "")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Select
Case $nMsg = $GUI_EVENT_CLOSE
Exit
Case $nMsg = $Button1
Case $nMsg = $Button2
Case $nMsg = $Button3
Case $nMsg = $Button4
Case $nMsg = $Button5
$Form2 = GUICreate("模组安装", 350, 500, 100, 100)
$Button6 = GUICtrlCreateButton("模组A", 0, 0, 350, 40)
GUICtrlSetFont(-1, 16, 800, 0, "")
$Button7 = GUICtrlCreateButton("模组B", 0, 40, 350, 40)
GUICtrlSetFont(-1, 16, 800, 0, "")
$Edit2 = GUICtrlCreateEdit("", 0, 200, 373, 320)
GUICtrlSetData(-1, "Edit1"& @crlf & "123")
GUICtrlSetFont(-1, 12, 800, 0, "")
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Select
Case $nMsg = $GUI_EVENT_CLOSE
Exit
Case $nMsg = $Button6
Run("")
Case $nMsg = $Button7
EndSelect
WEnd
EndSelect
WEnd
想请问要如何修改
才能让选单关闭时不会互相影响
另外发现第二选单叫出来
第一选单就没反应了 XD 请在论坛搜索 "父子窗口" 这个关键词, 前辈们已经给我们举出不少好例子! 回复 2# user3000
我搜索"父子窗口"
显示"没有找到匹配结果" 搜索 "父 子 窗口"
http://www.autoitx.com/search.php?searchid=383&orderby=lastpost&ascdesc=desc&searchsubmit=yes
页:
[1]