VitalSourcePrinter icon indicating copy to clipboard operation
VitalSourcePrinter copied to clipboard

VitalSource reader won't take in pyautogui presses?

Open shirish93 opened this issue 8 years ago • 3 comments
trafficstars

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?

Windows 10
Python 3.4.2 (Winpython)
VitalSource bookshelf 7.5.0

Test code

def test():
	time.sleep(3)
        pyautogui.hotkey('ctrl', 'p')

The above sends in print command to every other program but the bookshelf. I've tried manual ctrl+p and it does work.

shirish93 avatar Jun 10 '17 13:06 shirish93

Have you tried adding an interval? Like so: pyautogui.hotkey('ctrl', 'p', interval = 0.50)

LifeAlgorithm avatar Jun 11 '17 05:06 LifeAlgorithm

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 : - /

shirish93 avatar Jul 19 '17 05:07 shirish93

Which problem did you solve? I am still unable to do a printing

noobatcode avatar Jul 21 '17 02:07 noobatcode