|
各位大侠:
帮一个朋友的忙,我这个菜鸟硬着头皮接了一个投票的活。
au3 调用亦思ycode.dll,我在本网站看过。但确实不是太明白。特别是返回值。我看的调用方式看不太懂。
$a = DllCall($dll,"Int","loadcode","Int","0","Int","0","str",$Locacode,"str","");这里是加载验证码识别库
返回$a[0] 就是项目数
$b = DllCall($dll,"Str","outitem","Int","1");这个是返回项目名称
返回$b[0] 就是项目名称
$c = DllCall($dll,"int","Recognitiond","Int","1","Int","0","Int","0","str","","str",$Pic_file);识别
返回 $c[0] 就是识别出来的字符串指针
DllCall("ycode.dll","Int","Writepic","str","code.bmp") ;将验证码图片输出为BMP格式,方便GUI显示
$p = DllStructCreate("char Code[128]",$c[0])
MsgBox(0,"", DllStructGetData($p,"Code")&" 字符串指针:"&$c[0]&" 指针大小:"&DllStructGetSize($p)&" 错误:"&@Error)
其中DLLCALL中的ycode.dll是如何调用的,不清白。请帮助我一下。谢谢。 |
|