Skip to content

window_check

Functions to get details on active programs

Functions:

get_program_pid

get_program_pid(program_name: str | None = None) -> int

Function to get PID from a given program name

Parameters:

  • program_name

    (str | 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_name

    (str | None, default: None ) –

    Program name

Returns:

  • bool

    True if program is active, False otherwise