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
Post a Comment