|
调用大漠插件里的找图功能老是不成功,大哥们帮忙看看那出错了
Run("\regsvr32 c:\test\plugin\dm.dll /s")
Sleep(2000)
Dim $x,$y
$dm = ObjCreate("dm.dmsoft")
$pos = _FindPic(0,0,1339,899,"1.bmp","000000",0.9,0)
Func _FindPic($iLeft, $iTop, $iRight, $iBottom, $szFileName, $delta,$fSimilar,$dr)
;MsgBox(0, "$szFileName 的值为:", $szFileName)
;MsgBox(0, "$delta 的值为:", $delta)
Dim $pos[2]
$foundpixel = $dm.FindPic($iLeft, $iTop, $iRight, $iBottom, $szFileName, $delta,$fSimilar,$dr,$x,$y)
$pos[0] = $x
$pos[1] = $y
Return $pos
EndFunc ;==>FindPic |
|