找回密码
 加入
搜索
查看: 1370|回复: 1

求救

[复制链接]
发表于 2009-2-23 11:24:04 | 显示全部楼层 |阅读模式
哪位大大帮我看下,
怎末实现不了2秒后关闭窗口form1_1,而打开form1


#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
_Main()
Func _Main()
#Region ### START Koda GUI section ### Form=c:\documents and settings\administrator\桌面\form1.kxf
Local $nMsg
$Form1_1 = GUICreate("Form1", 561, 142, -1, -1, $WS_POPUP)
GUISetBkColor(0x008000)
$Label1 = GUICtrlCreateLabel("緑緣網吧歡迎您", 64, 8, 427, 68)
GUICtrlSetFont(-1, 48, 800, 0, "仿宋_GB2312")
GUICtrlSetColor(-1, 0x000080)
$Label2 = GUICtrlCreateLabel("技ポ支持:497989234(慕傛) ", 280, 112, 278, 23)
GUICtrlSetFont(-1, 14, 800, 0, "楷体_GB2312")
GUICtrlSetColor(-1, 0x000080)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Sleep(2000)
While 1
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        $Form1 = GUICreate("Form1", 633, 446, 192, 124)
                        GUISetState(@SW_SHOW)
                        Exit

        EndSwitch
WEnd
EndFunc
发表于 2009-2-23 12:55:17 | 显示全部楼层
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
_Main()

Func _Main()

Local $nMsg
$Form1_1 = GUICreate("Form1", 561, 142, -1, -1, $WS_POPUP)
GUISetBkColor(0x008000)
$Label1 = GUICtrlCreateLabel("緑緣網吧歡迎您", 64, 8, 427, 68)
GUICtrlSetFont(-1, 48, 800, 0, "仿宋_GB2312")
GUICtrlSetColor(-1, 0x000080)
$Label2 = GUICtrlCreateLabel("技ポ支持:497989234(慕傛) ", 280, 112, 278, 23)
GUICtrlSetFont(-1, 14, 800, 0, "楷体_GB2312")
GUICtrlSetColor(-1, 0x000080)
GUISetState()
Sleep(2*1000)
GUIDelete($Form1_1)
$Form1 = GUICreate("Form1", 633, 446, 192, 124)
GUISetState()
Sleep(2*1000)

While 1
    $nmsg=GUIGetMsg()
    Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
        EndSwitch
WEnd
EndFunc
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-12-23 21:32 , Processed in 0.067695 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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