QMPlugin.dll 是按键精灵中的一个DLL,估计也是一个插件,插件用法不懂,想用DllCall的方法来用,其中FindPic的用法是这样:
FindPic(0,0,1024,768,"神盾.bmp",0.9,x,y)
//区域找图 0,0,1024,768为区域范围 "神盾.bmp"为图片名(路径) 0.9为找图的相似度 x,y为找到图片后的坐标变量
我写的东西是这样:
dim $x,$y
finpic(0,0,1024,768,"神盾.bmp",0.9,$x,$y)
Func finpic($zx,$zy,$yz,$yx,$yy,$path,$xs,$x,$y)
DllCall("QMPlugin.dll","none","FindPic","int",$zx,"int",$zy,"int",$yx,"int",$yy,"str",$path,"float",$xs,"int",$x,"int",$y)
EndFunc
调用出错
finpic() called by a previous line with 8 arg(s). Min = 9. First previous line calling this Func is 3.
Func finpic($zx,$zy,$yz,$yx,$yy,$path,$xs,$x,$y)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
C:\Users\ROOT\桌面\大兵插件\zhaotu.au3 - 1 error(s), 0 warning(s)
[ 本帖最后由 zhrh88 于 2008-5-13 09:05 编辑 ] |