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

Method BindWindow

src/pkgDm/Dm2Java.java:487–489  ·  view source on GitHub ↗

绑定指定的窗口,并指定这个窗口的屏幕颜色获取方式,鼠标仿真模式,键盘仿真模式,以及模式设定,高级用户可以参考BindWindowEx更加灵活强大. @param hwnd 指定的窗口句柄 @param display 屏幕颜色获取方式 取值有以下几种 "normal" : 正常模式,平常我们用的前台截屏模式 "gdi" : gdi模式,用于窗口采用GDI方式刷新时. 此模式占用CPU较大. "gdi2" : gdi2模式,此模式兼容性较强,但是速度比gdi模式要慢许多,如果gdi模式发现后台不刷新时,可以考虑用gdi2模式. "dx2" : dx2模式,

(int hwnd,String display,String mouse,String keypad,int mode)

Source from the content-addressed store, hash-verified

485 * @return 0: 失败 1:成功
486 */
487 public int BindWindow(int hwnd,String display,String mouse,String keypad,int mode){
488 return Dispatch.call(dm, "BindWindow", hwnd,display,mouse,keypad,mode).getInt();
489 }
490
491 /**
492 * 更详细的说明参考大漠接口说明

Callers 3

AssistInitMethod · 0.95
mainMethod · 0.95
GameWindowAdjustMethod · 0.80

Calls 2

callMethod · 0.95
getIntMethod · 0.45

Tested by 1

mainMethod · 0.76