多谢你的提示。
按照这样写,没有得到结果
#include <IE.au3>
#include <GDIPlus.au3>
#Include <Clipboard.au3>
$oIE = _IECreate ("http://www.xun001.com/login.jsp")
$shtml=_IEBodyReadHTML($oIE)
$oimg= _IETagNameGetCollection($oIE,"IMG")
$i=1
For $img1 In $oimg
If $img1.src="http://www.xun001.com/code2.jsp" Then
;MsgBox(0,"","找到了")
$oPic = $oimg.Document.body.createControlRange()
$oPic.Add($img1)
$oPic.execCommand("Copy")
$img = ClipGet()
EndIf
Next
_GDIPlus_Startup()
_ClipBoard_Open(0)
$iVerifyPics = _ClipBoard_GetDataEx($CF_BITMAP)
$iVerifyPics = _GDIPlus_BitmapCreateFromHBITMAP($iVerifyPics)
_ClipBoard_Close()
FileDelete(@TempDir & "\getimage.bmp")
_GDIPlus_ImageSaveToFile($iVerifyPics, @TempDir & "\getimage.bmp")
$a_Image = myReadImageToArray(@TempDir & "\getimage.bmp", True, 1, 0x777777);例如2.jpg,3.jpg等等,识别看看吧
$s_code_string = myArrarOCR(@ScriptDir&"\CodeFont.txt", $a_Image, 1, 4, 8, "", 6, 5, 4, 4)
MsgBox(0, "识别结果", $s_code_string)
回复 2# crkey12345 |