I've installed the pyautogui package to use the .hotkey() function to trigger an event. For example: If you press the key combination "Ctrl + c" the console shall display the message "Hello world".
I tried something like this:
while True:
if pyautogui.hotkey("ctrl", "c"):
print("Hello World")
It's wrong I know but is there a possibility to print this message when I've pressed Ctrl and C at the same time?