Answer the question
In order to leave comments, you need to log in
How to make a script press keys in the background?
There is a script that should press the F2 key in the background,
win32api.keybd_event(win32con.VK_F2, 0, 0, 0)
win32api.keybd_event(win32con.VK_F2, 0, win32con.KEYEVENTF_KEYUP, 0)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question