按键精灵可以在游戏中做到自动识别数字并判断是否购买吗?好的50分
大漠插件文字识别例子,XP系统桌面找“我的电脑” (字库是在XP系统下制作,所以这段代码也只适用于XP。自己重新做字库,Win7也行。)
//首先添加大漠插件"dm.dll""regdll.dll"到附件!!!
//下面第一句释放"dm.dll"到你所需要的文件夹,这个目录自己改
PutAttachment "D:\DmPath", "dm.dll"
//下面是释放注册插件到按键的插件文件夹,这个不能改
PutAttachment ".\plugin", "regdll.dll"
PutAttachment "D:\DmPath", "My computer.txt"
//以下是注册
Call Plugin.RegDll.Reg("D:\DmPath\dm.dll")
Delay 50
Set dm = createobject("dm.dmsoft")
//判断你的插件版本是否已经注册成功
TracePrint dm.Ver()
If Len(dm.Ver()) = 0 Then
Set dm = nothing
set ws=createobject("Wscript.Shell")
ws.run "regsvr32 D:\DmPath\dm.dll /s"
Set ws = nothing
Delay 1500
TracePrint "注册"
Else
Beep
End If
Set dm = createobject("dm.dmsoft")
dm_ret = dm.SetPath("D:\DmPath")
dm_ret = dm.setDict(0, "My computer.txt")
dm_ret = dm.FindStrFast(0,0,2000,2000,"我的电脑","ffffff-000000",1.0,intX,intY)
If intX >= 0 and intY >= 0 Then
Delay 200
dm.MoveTo intX, intY
MsgBox "大漠插件找到我的电脑"
End If
EndScript