manhtai / vitalsource-printer

Take screenshot, click next page, then do it again...
80 stars 26 forks source link

Can't screenshot long pages #2

Open mrwm opened 5 years ago

mrwm commented 5 years ago

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.

manhtai commented 5 years ago

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 5 years ago

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

manhtai commented 5 years ago

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.

vortex91 commented 5 years ago

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.

srustamo commented 4 years ago

Adding a vote for multi-page use-case.

srustamo commented 4 years ago

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

EngineNeo commented 2 years ago

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?