The question is in the subject. Keystrokes (including functional keys) can be created using a module, for example, pyautogui . But they work for the top active window as I understand it.
import pyautogui pyautogui.press('f5') And I would like to "push" the keystrokes on subprocesses ... The subprocess is a powerpoint. How can this be done?