java - Get all chrome windows -


i want chrome windows running currently. below code windows.

final windef.hwnd[] windowhandle = new windef.hwnd[1];      user32.instance.enumwindows(new winuser.wndenumproc() {         @override         public boolean callback(windef.hwnd hwnd, pointer pointer) {             if (matches(hwnd)) {                 windowhandle[0] = hwnd;                 return false;             }             return true;         }     }, pointer.null); 

how can running chrome windows ?

i think better use completed third party library sigar. https://support.hyperic.com/display/sigar/home

you api work processes. @ least can @ source code.

sigar sigar = new sigar(); processfinder find = new processfinder(sigar); find.find("exe.name.ct=chrome"); 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -