While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Case $XButton1
$TSCK = 1
_SetTS()
If $NOYES = 1 Then ContinueLoop
FileWrite(@ScriptDir & "\baksys", "")
_SetQJ()
;Shutdown ( 6 )
Case $XButton2
$TSCK = 2
_SetTS()
If $NOYES = 1 Then ContinueLoop
FileWrite(@ScriptDir & "\resys", "")
_SetQJ()
;Shutdown ( 6 )
Case $Tab2Button3
DirCreate($szqd2 & "\xxd")
Case $Tab2Button4
_seedd()
Case $XButton3
_SetMYJX()
EndSwitch
$msg = GUIGetMsg()
Select
Case $msg = $Button1
GUICtrlSetState($Button1, $GUI_DISABLE)
If GUICtrlRead($Tab3Check1) <> $GUI_CHECKED And GUICtrlRead($Tab3Check2) <> $GUI_CHECKED And GUICtrlRead($Tab3Check3) <> $GUI_CHECKED And GUICtrlRead($Tab3Check4) <> $GUI_CHECKED And GUICtrlRead($Tab3Check5) <> $GUI_CHECKED And GUICtrlRead($Tab3Check6) <> $GUI_CHECKED Then
MsgBox(0, "提示", "对不起,您没有选择任何项目!")
ElseIf GUICtrlRead($Tab3Check5) = $GUI_CHECKED And GUICtrlRead($Tab3Check6) = $GUI_CHECKED Then
_JU1()
ElseIf GUICtrlRead($Tab3Check5) = $GUI_CHECKED Then
_JU2()
ElseIf GUICtrlRead($Tab3Check6) = $GUI_CHECKED Then
_JU3()
Else
MsgBox(0, "提示", "请选择'转移'中的一项或全部")
EndIf
GUICtrlSetState($Button1, $GUI_ENABLE)
Case $msg = $Button3
GUICtrlSetState($Button3, $GUI_DISABLE)
If GUICtrlRead($Tab34Check1) <> $GUI_CHECKED And GUICtrlRead($Tab34Check2) <> $GUI_CHECKED And GUICtrlRead($Tab34Check3) <> $GUI_CHECKED And GUICtrlRead($Tab34Check4) <> $GUI_CHECKED And GUICtrlRead($Tab34Check9) <> $GUI_CHECKED And GUICtrlRead($Tab34Check10) <> $GUI_CHECKED Then
MsgBox(0, "提示", "对不起,您没有选择任何项目!")
ElseIf GUICtrlRead($Tab34Check9) = $GUI_CHECKED And GUICtrlRead($Tab34Check10) = $GUI_CHECKED Then
_xx1()
ElseIf GUICtrlRead($Tab34Check9) = $GUI_CHECKED Then
_xx2()
ElseIf GUICtrlRead($Tab34Check10) = $GUI_CHECKED Then
_xx3()
Else
MsgBox(0, "提示", "请选择'更改' '转移'中的一项或全部")
EndIf
GUICtrlSetState($Button3, $GUI_ENABLE)
EndSelect
WEnd
请帮忙看这些代码哪里出问题了,我点击完界面上的按钮需要点两三次才出现需要的功能界面,如果不加 Select 语句就不会,一点就开始执行,而加了Select后,点界面上的按钮要点两三下才开始执行程序,请问是哪里出问题了呢,谢谢。 |