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

Method GetForegroundWindow

src/pkgDm/Dm2Java.java:202–204  ·  view source on GitHub ↗

获取顶层活动窗口,可以获取到按键自带插件无法获取到的句柄 @return 返回整型表示的窗口句柄

()

Source from the content-addressed store, hash-verified

200 * @return 返回整型表示的窗口句柄
201 */
202 public int GetForegroundWindow(){
203 return Dispatch.call(dm, "GetForegroundWindow").getInt();
204 }
205 /**
206 * 获取鼠标指向的窗口句柄,可以获取到按键自带的插件无法获取到的句柄
207 * @return 返回整型表示的窗口句柄

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getIntMethod · 0.45

Tested by

no test coverage detected