I would like to call a python function or a python file to execute with a hotkey. My function is an infinite loop. I would like to terminate the execution as well with a hotkey. Is it possible?
Windows shortcuts is not an option, because I would like to choose 1 key to execute and not a combination of keys ( for example CRTL + SHIFT + L ) .
It would be nice if the hotkey would be the middle ( scroll ) button of the mouse.