![]() Hotstrings (discussed below) share the same process with hotkeys and are started/stopped in the same manner.Hotkeys can be stopped with ahk.stop_hotkeys() (will not stop actively running callbacks).Hotkeys run in a separate process that must be started manually (with ahk.start_hotkeys()).add_hotkey( '#n', callback = go_boom, ex_handler = my_ex_handler) ![]() Print( 'exception with callback for hotkey', hotkey, 'Here was the error:', exception)Īhk. Def my_ex_handler( hotkey: str, exception: Exception):
0 Comments
Leave a Reply. |