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

ClassNameDescription
stringprocessNameA process name.

Return value

ClassDescription
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

Copyright © Cooker All rights reserved.