VitalSourcePrinter icon indicating copy to clipboard operation
VitalSourcePrinter copied to clipboard

Stuck on the First dialog box

Open livlogik opened this issue 8 years ago • 7 comments
trafficstars

Hello sorry if this is already brought up but didn't read it anywhere. I am having the issue where I run the script fine but then it enters everything in the first dialog box and never tabs over. I'm running 7.1.0. I tried to change the tab from .25 to .5 but still is a no go.

livlogik avatar Apr 03 '17 03:04 livlogik

Hello, a few people have run into this before, and I have a feeling the issue is OS related. I'm thinking maybe an extra tab press at the start could resolve the issue. Try copying and pasting line 133 in the original script to a new line right after. It should look like

pyautogui.press(keys = 'tab', presses = 2, interval = 0.25)
pyautogui.press(keys = 'tab', presses = 2, interval = 0.25)

I'm hoping that this will trigger the initial tabs, and then the script will run normally.

LifeAlgorithm avatar Apr 05 '17 05:04 LifeAlgorithm

It looks like it worked for the first roman numeral then it didn't work again. I made a video because I think that would help you better than going off what I'm trying to explain haha.

https://www.youtube.com/watch?v=o4sZ6FcCYps&feature=youtu.be&hd=1

livlogik avatar Apr 06 '17 04:04 livlogik

Thanks for making that video. I've been wanting to tackle this issue once and for all and it's really helpful to actually see the bug.

I just made a new script on a test branch where I expanded out some of the press methods and added more intervals. Try this and see if it works:

https://github.com/LifeAlgorithm/VitalSourcePrinter/blob/TabFix/VitalSourcePrinter.py

LifeAlgorithm avatar Apr 07 '17 02:04 LifeAlgorithm

Nope it was a no go. Your welcome about the video i understand it can be difficult if you have not seen it. if you want I can set it up one day and you can use team viewer to control my PC and mess around with it if you think that would help.

livlogik avatar Apr 07 '17 05:04 livlogik

The only other way I can think of solving this issue would be you yourself tinkering with the script. Otherwise if you're super motivated to figure this out, we can set a time and try the team viewer.

LifeAlgorithm avatar Apr 08 '17 00:04 LifeAlgorithm

Same thing is happening to me just as the video shows. Was there a solution?

noobatcode avatar Jun 16 '17 08:06 noobatcode

Not yet. The challenging part about this and the other issues that have come up is that the script works for some people and doesn't work for others. Until a more reliable automation method comes out, I'd recommend modifying the script yourself. Try increasing the intervals or adding intervals where there aren't any, such as changing instances of

pyautogui.hotkey('ctrl', 'p')

to

pyautogui.hotkey('ctrl', 'p', interval = 0.5)

Or even just experiment with any of the pyautogui commands in your own script. If you can get the right keystrokes and presses to register, please share what you did.

LifeAlgorithm avatar Jun 18 '17 04:06 LifeAlgorithm