ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

FINISHED: Speed It Up, or Slow It Down

(1/2) > >>

nkormanik:
Background: 

I like FBReader for reading .epubs.  Terrific program.  Except for one major omission.  For many years I've asked the developers to incorporate an auto-page-advance feature.  But no reply.

One has to manually hit page-down to go to the next page.

I can program a basic macro program to hit Page Down, repeatedly, every so many seconds -- fixed speed.  Not a big deal.

But..., there's likely a better way.

Challenge and Request:

Ideally.  Program the keypad (+) and (-) keys to increase or decrease the speed of hitting the Page Down key.  Perhaps at 5% increments or whatever.

In other words, user brings up FBReader, and some .epub (but probably would work with any such reader or word processing program, or even an image viewer).  Start auto-page-advance by hitting the keypad (+) key.  Suppose the initial default is 30 seconds per page.  If that's too slow, hit the (+) key again, and the speed to next page-turn is faster.  Hit again, and faster still.

If the 30-seconds per page is too fast, hit the keypad (-) key.  And the page-turn is then made slower.  Hit again, slower still.

Whaddya think?  Doable?

Thanks much!

Nicholas Kormanik

Ath:
With a 'little' work on WinSendKeys and WinButtons I could probably realize that.

skrommel:
 :) Try PageDown.  The program presses PageDown every x seconds. Press Num+ and Num- to change the delay.

Save the script as PageDown.ahk. Download and install AutoHotkey to run the script.

Skrommel


--- ---;PageDown.ahk
;  Presses PageDown every x seconds. Press Num+ and Num- to change the delay.
;Skrommel @ 2017

#NoEnv
#SingleInstance,Force

delay=1000
GOTO,PAGEDOWN

NumPadSub::
delay+=1000
ToolTip,Delay: %delay%
Return

NumPadAdd::
delay-=1000
If (delay<1000)
  delay=1000
ToolTip,Delay: %delay%
Return

PAGEDOWN:
Sleep,%delay%
;IfWinNotActive,FBReader
;  Goto,PAGEDOWN
Send,{PgDn}
ToolTip,PageDown
Goto,PAGEDOWN

Ath:
Great solution, thnx skrommel!

I hadn't started on extending WinButtons/WinSendKey, but I think this is what Nick needs.

nkormanik:
Terrific, skrommel.  Works better than I was hoping for.

One change request, though.  Switch the (+) and (-) keys, so that (+) speeds up, and (-) slows down.

How does user get completely out?

Interestingly one can pause simply by clicking on the desktop.  And resume by clicking on the program being read, picking right up again.

We seem to have a definite winner here.

Why in the world hasn't this been done before.....

Well, now it is.

Thanks very much!

Navigation

[0] Message Index

[#] Next page

Go to full version