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

Method EnumWindow

src/pkgDm/Dm2Java.java:123–125  ·  view source on GitHub ↗

根据指定条件,枚举系统中符合条件的窗口,可以枚举到按键自带的无法枚举到的窗口 @param parent 获得的窗口句柄是该窗口的子窗口的窗口句柄,取0时为获得桌面句柄 @param title 窗口标题. 此参数是模糊匹配 @param class_name 窗口类名. 此参数是模糊匹配 @param filter 取值定义如下 1 : 匹配窗口标题,参数title有效 2 : 匹配窗口类名,参数class_name有效. 4 : 只匹配指定父窗口的第一层孩子窗口 8 : 匹配所有者窗口为0的窗口,即顶级窗口 16 : 匹配可见的窗口<b

(int parent,String title,String class_name,int filter)

Source from the content-addressed store, hash-verified

121 * @return 回所有匹配的窗口句柄字符串,格式"hwnd1,hwnd2,hwnd3"
122 */
123 public String EnumWindow(int parent,String title,String class_name,int filter){
124 return Dispatch.call(dm, "EnumWindow", parent,title,class_name,filter).getString();
125 }
126
127 /**
128 * 根据指定进程以及其它条件,枚举系统中符合条件的窗口,可以枚举到按键自带的无法枚举到的窗口

Callers

nothing calls this directly

Calls 2

callMethod · 0.95
getStringMethod · 0.45

Tested by

no test coverage detected