CS起源 矩阵获取失败
.版本 2.支持库 spec
.程序集 窗口程序集_启动窗口
.程序集变量 内核读写, 内核读写
.程序集变量 进程PID, 整数型
.程序集变量 矩阵类, 长整数型
.程序集变量 矩阵基地址, 长整数型
.程序集变量 窗口高度, 整数型
.程序集变量 窗口宽度, 整数型
.程序集变量 ViewWorld, 小数型, , "4,4"
.程序集变量 进程句柄, 整数型
.子程序 __启动窗口_创建完毕
.局部变量 偏移, 长整数型
进程PID = 取进程ID (“cstrike_win64.exe”)
进程句柄 = 进程_打开1 (进程PID)
矩阵基地址 = 进程_取模块句柄1 (进程PID, “engine.dll”) + 十六到十 (“6A1BD0”)
.子程序 _按钮1_被单击
时钟1.时钟周期 = 100
.子程序 _时钟1_周期事件
ReadProcessMemoryWorld (进程句柄, 矩阵基地址, ViewWorld , 64, 0)
调试输出 (ViewWorld)
使用易语言读取内存中的矩阵输出如下:
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
* 数组:4*4{0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000,0.000000}
进程和jz都是正常的,只有获取矩阵出现问题
把取矩阵的进程句柄换成进程id
页:
[1]