本帖最后由 faceyao 于 2009-7-9 00:16 编辑
目的:2分钟后,作文增加了内容,要得出最后部分是增加了哪些内容Dim $hOutPut
$hSouce = ControlGetText("[CLASS:Notepad]", "", "Edit1")
Sleep(120000)
$hTarget = ControlGetText("[CLASS:Notepad]", "", "Edit1")
Func _FileListCompare($hSouce,$hTarget,$hOutPut)
$hLine_S = _FileCountLines($hSouce)
$hCon_T = FileRead($hTarget)
For $hSi = 1 To $hLine_S
$hS_String = StringSplit(FileReadLine($hSouce,$hSi),"|")
If Not StringInStr($hCon_T,$hS_String[1]) Then
FileWriteLine($hOutPut,$hS_String[1])
EndIf
Next
EndFunc
MsgBox(0, "",$hOutPut)
这样运行后无效果,新增加的内容显示不出来,请问哪里写错了?
(以上代码参考了此udf 内容
http://www.autoitx.com/forum.php ... hlight=%B2%BB%CD%AC) |