window_check
Functions to get details on active programs
Functions:
-
get_program_pid–Function to get PID from a given program name
-
has_findmy_open_window–Function checking whether the FindMy window is open
-
is_valid_program–Function checking whether it is an active program
get_program_pid
get_program_pid(program_name: str | None = None) -> int
Function to get PID from a given program name
Parameters:
-
(program_namestr | None, default:None) –Program name
Returns:
-
int–Valid PID (> 0), -1 otherwise
has_findmy_open_window
has_findmy_open_window() -> bool
Function checking whether the FindMy window is open
Returns:
-
bool–True if FindMy window is open, False otherwise
is_valid_program
is_valid_program(program_name: str | None = None) -> bool
Function checking whether it is an active program
Parameters:
-
(program_namestr | None, default:None) –Program name
Returns:
-
bool–True if program is active, False otherwise