加一行#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Global $Paused
Dim $Form1
Dim $ok
HotKeySet("{F8}", "_123")
HotKeySet("{PAUSE}", "_tc")
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
_yc()
EndSwitch
WEnd
Func _123()
HotKeySet("{F8}")
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 205, 99, 192, 114)
$Label1 = GUICtrlCreateLabel("号码:", 8, 16, 84, 24)
GUICtrlSetFont(-1, 12, 400, 0, "MS Sans Serif")
$Input1 = GUICtrlCreateInput("500227198404211812", 80, 16, 121, 21)
$Button1 = GUICtrlCreateButton("OK", 8, 56, 75, 25)
$Button2 = GUICtrlCreateButton("KO", 112, 56, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $Button1
If $ok = 0 Then
MsgBox(48, "提示", "没有发现!", 10)
Else
_12()
_yc()
EndIf
Case $Button2
_yc()
Case $GUI_EVENT_CLOSE
_yc()
EndSwitch
WEnd
EndFunc ;==>_123
Func _12()
;;;;
EndFunc ;==>_12
Func _yc()
;;;
EndFunc ;==>_yc
Func _tc()
Exit
EndFunc ;==>_tc
|