INNER CODE UNIT · Python
set_title_match_mode
spyoungtech/ahk · ahk/_async/engine.py:278
async def set_title_match_mode(self, title_match_mode: TitleMatchMode, /) -> None:
"""
Sets the default title match mode
Does not affect methods called with ``blocking=True`` (because these run in a separate AHK process)
Reference: https://www.autohotkey.com/docs/commands/SetTitleMatchMode.htm
:param title_match_mode: the match mode (and/or match speed) to set as the default title match mode. Can be 1, 2, 3, 'Regex', 'Fast', 'Slow' or a tuple of these.
:return: None
"""
args = []
if isinstance(title_match_mode, tuple):
match_mode, match_speed = title_match_mode
elif title_match_mode in (1, 2, 3, 'RegEx'):
match_mode = title_match_mode
match_speed = ''