Open shirish93 opened 7 years ago
Have you tried adding an interval? Like so:
pyautogui.hotkey('ctrl', 'p', interval = 0.50)
Yup. Didn't work. Thanks for the suggestion!
So, I solved my problem. I had to run the pythons script as administrator.
However, the other problem still exists. Vitalsource has introduced random tabs when doing multiple prints. It throws the program off : - /
Which problem did you solve? I am still unable to do a printing
So it appears that when pyautogui passes keypresses to VitalSource reader, it somehow detects it's a simulated keypress, and doesn't register it. When I create a delayed keypress, the keypress is accepted by all other programs in my computer, except the vitalsource bookshelf/reader. Ideas?
Test code
The above sends in print command to every other program but the bookshelf. I've tried manual ctrl+p and it does work.