#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 623, 449, 192, 114)
$Input1 = GUICtrlCreateInput("Input1", 192, 80, 249, 21)
$Label1 = GUICtrlCreateLabel("输入要验证的编号:", 80, 80, 103, 17)
$Button1 = GUICtrlCreateButton("跟INI文件对比存不存在相同的", 144, 144, 305, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_az()
EndSwitch
WEnd
Func _az()
If StringInStr(FileRead('temp.txt'), GUICtrlRead($Input1)) Then
MsgBox(0,0,'ok')
Else
MsgBox(0,0,'no')
EndIf
EndFunc
|