manhtai/vitalsource-printer

Can't screenshot long pages

mrwm opened this issue · 7 comments

mrwm commented

The program screenshots the first half of the page, then moves onto the next without scrolling down, this leaves out the bottom half of the books unrecorded.

Please make sure you had the right coordinates for the page, you can make a quick check by calculating the size of page using coordinates.

mrwm commented

I'm using the coordinates provided on the screen, but there's more on the page that needs to be scrolled down to see. If I scroll down, the coordinates on the screen will stay the same regardless of page position

Oh I see, you have to fit the page into your screen first, my script doesn’t scroll page for now, it just captures what it sees in the coordinates.

Im not sure if vitalsource did it on purpose or not but there are cases where there are over 20 pages to scroll down to in 1 page.

Adding a vote for multi-page use-case.

@vortex91
I modified the code to scroll down (with pushing SPACE). Have a look at this gist.

Hello,
I was able to get it sort of running but it resulted in the first iteration of the for loop to press enter once then go directly to the next page. Was anyone able to fix this or have something else available?