MCPcopy Create free account
hub / github.com/HelloBush/Java_MHXYdemo / WriteFloat

Method WriteFloat

src/pkgDm/Dm2Java.java:1202–1204  ·  view source on GitHub ↗

对指定地址写入单精度浮点数 @param hwnd 指定搜索的窗口句柄或者进程ID. 默认是窗口句柄. 如果要指定为进程ID,需要调用SetMemoryHwndAsProcessId. @param addr 用字符串来描述地址,类似于CE的地址描述,数值必须是16进制,里面可以用[ ] + -这些符号来描述一个地址。+表示地址加,-表示地址减;模块名必须用<>符号来圈起来 例如: 1. "4DA678" 最简单的方式,用绝对数值来表示地址 2. "<360SE.exe>+DA678" 相对简单的方式,只是这里用模块名来决定模块基

(int hwnd,String addr,float v)

Source from the content-addressed store, hash-verified

1200 * @return 0 : 失败 ;1 : 成功
1201 */
1202 public int WriteFloat(int hwnd,String addr,float v){
1203 return Dispatch.call(dm, "WriteFloat",hwnd,addr,v).getInt();
1204 }
1205
1206 /**
1207 * 对指定地址写入整数数值,类型可以是8位,16位 或者 32位

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getIntMethod · 0.45

Tested by

no test coverage detected