FindBinary 搜索二进制数据
搜索指定值并返回该值的地址,字符串比较。
参数1 整数型,窗口句柄
参数2 字符串型,搜索的二进制字符串
参数3 整数型,匹配二进制的长度
参数4 整数型,起始地址
参数5 整数型,中止地址
参数6 整数型,移动步长,改值要大于等于 1
字符串型,读取成功返回该地址的值 否则为 0

//以下为7.20版例子:
WinminePath = "winmine.exe"
WinmineTitle = "扫雷"
Call RunApp(WinminePath)
Delay 1000
WinmineHwnd=Plugin.Window.Find(0,WinmineTitle)
Val = Plugin.Memory.FindBinary(WinmineHwnd, "2E7465", 3, &h400000, &h6000000, 2)
MsgBox Val
str=Plugin.Memory.ReadBinary(WinmineHwnd,Val,3)
MsgBox str

//以下为7.20版例子:
WinminePath = "winmine.exe"
WinmineTitle = "扫雷"
VBSCall RunApp(WinminePath)
Delay 1000
Plugin WinmineHwnd=Window.Find(0,WinmineTitle)
Plugin Val = Memory.FindBinary(WinmineHwnd, "2E7465", 3, &h400000, &h6000000, 2)
MsgBox Val
Plugin str=Memory.ReadBinary(WinmineHwnd,Val,3)
MsgBox str