找回密码
 加入
搜索
查看: 1944|回复: 3

[系统综合] [已解决]新手发问 - 游戏选单关闭

[复制链接]
发表于 2011-12-28 05:32:40 | 显示全部楼层 |阅读模式
本帖最后由 東影神煌 于 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
发表于 2011-12-28 07:53:30 | 显示全部楼层
请在论坛搜索 "父子窗口" 这个关键词, 前辈们已经给我们举出不少好例子!
 楼主| 发表于 2011-12-28 14:26:24 | 显示全部楼层
回复 2# user3000

我搜索"父子窗口"
显示"没有找到匹配结果"
发表于 2011-12-28 17:42:30 | 显示全部楼层
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-10-1 01:28 , Processed in 0.094777 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表