读取指定地址的整数数值,类型可以是8位,16位 或者 32位 @param hwnd 指定搜索的窗口句柄或者进程ID. 默认是窗口句柄. 如果要指定为进程ID,需要调用SetMemoryHwndAsProcessId @param addr 用字符串来描述地址,类似于CE的地址描述,数值必须是16进制,里面可以用[ ] + -这些符号来描述一个地址。+表示地址加,-表示地址减;模块名必须用<>符号来圈起来 例如: 1. "4DA678" 最简单的方式,用绝对数值来表示地址 2. "<360SE.exe>+DA678" 相对简单的方
(int hwnd,String addr,int type)
| 1117 | * @return 读取到的数值,注意这里无法判断读取是否成功 |
| 1118 | */ |
| 1119 | public int ReadInt(int hwnd,String addr,int type){ |
| 1120 | return Dispatch.call(dm, "ReadInt",hwnd,addr,type).getInt(); |
| 1121 | } |
| 1122 | |
| 1123 | /** |
| 1124 | * 读取指定地址的字符串,可以是GBK字符串或者是Unicode字符串.(必须事先知道内存区的字符串编码方式) |