本帖最后由 afan 于 2010-2-23 18:20 编辑 #Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_Icon=C:\Tools\ico\wlds.ICO
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("雨人一卡通辅助工具", 400, 217, 437, 237)
GUISetFont(10, 400, 0, "MS Sans Serif")
$Label1 = GUICtrlCreateLabel("Copyright (C) 2010.2 ", 224, 192, 172, 18)
GUICtrlSetFont(-1, 11, 800, 0, "宋体")
$Button1 = GUICtrlCreateButton("开始", 72, 72, 99, 49)
GUICtrlSetFont(-1, 16, 800, 0, "宋体")
$Button2 = GUICtrlCreateButton("退出", 232, 72, 99, 49)
GUICtrlSetFont(-1, 18, 800, 0, "宋体")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE, $Button2
Exit
Case $Button1
GUICtrlSetState($Button1, $Gui_DISABLE)
WinSetState("雨人一卡通辅助工具", "", @SW_MINIMIZE)
Dim $bj = 0
While 1
If $bj = 2 Then ExitLoop
$nMsg1 = GUIGetMsg()
If $nMsg1 = $Button2 Or $nMsg1 = -3 Then Exit
If WinActive("音乐影视") Or WinActive("视频转换") Then
Sleep(1000)
WinClose("[ACTIVE]", "")
$bj += 1
EndIf
WEnd
WinSetState("雨人一卡通辅助工具", "", @SW_RESTORE)
GUICtrlSetState($Button1, $Gui_ENABLE)
EndSwitch
WEnd
|