Application Fuzzer

a utility function for getting an application name from its approximate name

source

fuzzy_app

 fuzzy_app (approx_name:str)

Resolve an approximate window name to the actual window name using magic.

Parameters: approx_name (str): The approximate window name.

Returns: str: The actual window name.


source

get_window_names

 get_window_names ()

Get a list of all the window names on the desktop.

Returns: List[str]: A list of window names.


source

resolve_window_name

 resolve_window_name (approx_name:str, choices:List[str],
                      threshold:int=85)

Resolve an approximate window name to the actual window name.

Parameters: approx_name (str): The approximate window name. choices (List[str]): A list of possible window names to choose from.

Returns: str: The actual window name.

fuzzy_app('notepad')
'*new 1 - Notepad++'