Utils

ahk.utils.async_filter(async_pred, iterable)[source]
ahk.utils.escape_sequence_replace(s)[source]

Replace Python escape sequences with AHK equivalent escape sequences Additionally escapes some other characters for AHK escape sequences. Intended for use with AHK Send command functions.

Note: This DOES NOT provide ANY assurances against accidental or malicious injection. Does NOT escape quotes.

>>> escape_sequence_replace('Hello, World!')
'Hello`, World{!}'
ahk.utils.make_logger(name)[source]