wfpool class : GetByProcessName(string) method
Description
Gets a list of the top-level windows that have the specified process name.
Syntax
wfpoolInstance.GetByProcessName(string processName)
Arguments
Class | Name | Description |
string | processName | A process name. |
Return value
Class | Description |
list{winframe} | A list of the window. |
Sample code
1: | wfpool wfp; |
2: | list{winframe} wflist = wfp.GetByProcessName("ApplicationFrameHost"); // Gets a window that has the "ApplicationFrameHostfocus" as the process name. |
Notes
The top-level windows are windows that do not have a parent.
A process name for the UWP (Universal Windows Platform) applications like the Edge, Calculator, or windows store application is the "ApplicationFrameHost". That is, these applications can not distinguish by process name.
Links for reference
None