pymhf.core.utils module#
- pymhf.core.utils.get_foreground_pid()#
- pymhf.core.utils.get_main_window()#
- pymhf.core.utils.get_main_window_handle() int | None #
Return the handle of the main running application window if possible. This will correspond to the HWND for the window belonging to the PID of the main running process.
- pymhf.core.utils.safe_assign_enum(enum, index: int)#
Safely try and get the enum with the associated integer value. If the index isn’t one in the enum return the original index.
- pymhf.core.utils.saferun(func, *args, **kwargs)#
Safely run the specified function with args and kwargs.
Any exception raised will be shown and ignored