DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Sending PageDown command in Post Capture CommandLine option  (Read 8,462 times)

viau2555

  • Supporting Member
  • Joined in 2013
  • **
  • Posts: 6
Sending PageDown command in Post Capture CommandLine option
« on: November 04, 2017, 04:43 PM »
I've searched this Forum in vain, trying to find a way to simply send a PgDn command after a Screen Capture. Just can't seem to find the solution. Certainly I am not the first one trying to do that. The idea is to capture each page of a pdf document on full screen mode. For each page I must trigger a Screen Capture and than trigger a Page Down. And loop like this for over 560 pages. Each extra PgDn button to press is cumbersome and could be avoided if I could arrange ScreenShot Captor to send a PgDn to Acrobat for automatically changing the page after the capture is done. Even better I could AutoCapture the pages and than send a PgDn. This would minimize human intervention to a simple start. So, basically, the question would be : How can I send a PgDn key to Acrobat using the Post Capture CommandLine tool ? Or, is there another way to do this ?
Thanks for your help
Life's too short to be true:)

ralfs

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 81
Re: Sending PageDown command in Post Capture CommandLine option
« Reply #1 on: November 04, 2017, 08:37 PM »
I would use acrobat to save the pdf as separate pictures, but what is the sense of making pictures of 560 pdf-pages?
Ralf

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: Sending PageDown command in Post Capture CommandLine option
« Reply #2 on: November 04, 2017, 08:41 PM »
Sorry, missed the command line bit. (i.e. ignore this post)
Tom
« Last Edit: November 04, 2017, 09:21 PM by tomos »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Sending PageDown command in Post Capture CommandLine option
« Reply #3 on: November 05, 2017, 08:25 AM »
You have some options.

First things first, Screenshot Captor might not be your best bet -- you could possibly more easily script MiniCap, the commandline brother of Screenshot Captor.
That still leaves you having to script something that can send PgDown to your pdf reader window.  AutoHotKey would be a good solution and there are some expert AHK scripters here that could help.

Another alternative to MiniCap would be my Automatic Screenshotter tool.  Configured properly you wouldn't even ever have to trigger the captures since they would happen automatically every time the window contents changed.  With it running you might even find that you could simply press PgDown yourself manually repeatedly since that's all you'd ever have to do.

But again, AHK would make easy work of sending the PgDown key to the reader repeatedly.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: Sending PageDown command in Post Capture CommandLine option
« Reply #4 on: November 05, 2017, 08:33 AM »
The scrolling capture feature of Screenshot Captor should get you what you want to achieve, but it will produce 1 very long image file.

Combining the commandline version of Screenshot Capture (minicap) with my WinSendKeys could produce you a screenshot per page, it'll require some experimenting, but you'll get there :up:
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Sending PageDown command in Post Capture CommandLine option
« Reply #5 on: November 05, 2017, 08:47 AM »
Quote
The scrolling capture feature of Screenshot Captor should get you what you want to achieve, but it will produce 1 very long image file.
Yeah for 500 pages, that's going to run out of memory with a scrolling capture.

viau2555

  • Supporting Member
  • Joined in 2013
  • **
  • Posts: 6
Re: Sending PageDown command in Post Capture CommandLine option
« Reply #6 on: November 11, 2017, 02:29 AM »
Thank you all for your suggestions. I finally managed to program the END key as a trigger and scrolled 500 pages pressing END and PGDN on after another 500 times. It sound more scary than it really is. At 1.5 second interval per page that is only 750 seconds. Took like 15 minutes to do. If I had to do that many times I would with a scripting tool and VBA to sendkey. Thanks again.
Life's too short to be true:)

IainB

  • @Slartibartfarst
  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,544
Re: Sending PageDown command in Post Capture CommandLine option
« Reply #7 on: November 12, 2017, 02:02 AM »
...I finally managed to program the END key as a trigger and scrolled 500 pages pressing END and PGDN on after another 500 times. It sound more scary than it really is. At 1.5 second interval per page that is only 750 seconds. Took like 15 minutes to do...
_____________________________
Risk of error and/or RSI (Repetitive Strain Injury)!?
Wouldn't that be a case for using a loop?

Original address: https://www.donationcoder.com/forum/index.php?topic=44563.0