topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday December 12, 2024, 7:43 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Timed Key Repeat, With Variable Timing  (Read 6002 times)

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 554
    • View Profile
    • Donate to Member
Timed Key Repeat, With Variable Timing
« on: May 24, 2023, 02:59 AM »
Prologue:  To read maximally our eyes must move rapidly.  Some of us are lucky to naturally develop this at an early age.  It might still be possible for others of us to learn later.

The idea of the asked-for program is to help with reading development.

Disclaimer:  No guarantees.  Use at your own risk.

=====

The present program I use to read epubs is Calibre Viewer (CV).  Seems about the best currently available for Windows.

CV lacks a particular ability that I'd really like to have.  Maybe you, Vic!, or someone here can come up with a solution.

CV allows user to select keys for various actions.  Enter, for instance, can be used for Page Down.

I'd like the following:

Upon execution of the mini-program, perhaps via desktop shortcut...

(Program must remain focused on CV, by the way (possibly user selectable, for other programs, like Acrobat, Word, Edge, Chrome, etc.?).  Not focused on program itself, desktop, etc.)

...Press Enter (specific key possibly user selectable) repeatedly, with a particular amount of time between each press, say, 5 seconds (possibly user selectable).

(The above can easily be done using a standard macro program.  I use Macro Express.)

(Here is where things get really tricky, and coding expertise is required.)

While this repeat-Enter process is going on...

Press the keypad (-) key to slow down the process.  Say, for instance, by 5%.  (Possibly user selectable.)

Press the keypad (+) key to speed up the process.  Say, for instance, by 5%.  (Possibly user selectable.)

Continue on with the repeat-Enter process for a user selected time.  Say, for instance, 5 minutes.

After completion of the above, open a small window center screen that says, "Rapid Reading Time Completed!"  (or, possibly user selectable text message.)

Upon closing the small window, the program terminates entirely.

Any thoughts or suggestions greatly appreciated.

Nicholas Kormanik


Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,777
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Timed Key Repeat, With Variable Timing
« Reply #1 on: May 25, 2023, 12:26 AM »
Hi Nicholas,

You might have better luck posting requests for coding snacks in the Coding Snacks section of the forum, where any interested coder may feel free respond to your request. You've posted your request directly in a section of the forum designated for PublicDomainVic to announce his personal programs and projects, and where other coders may not think to look when checking for requests to respond to.

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Timed Key Repeat, With Variable Timing
« Reply #2 on: May 25, 2023, 06:44 AM »
Hi Guys, I'm okay either way :)



As a matter of fact, there's some activity on the PM sphere between Nick and me, so, perhaps there shall be full disclosure regarding the threads appearing here on this section (?) i.e. "[For Vic]", or something along those lines, should they be directed specifically at me.

...PM's do impact public posting at times e.g. I opened the repo @ https://github.com/publicdomain/timed-key-repeat but didn't announce it as I'm telling Nick about an idea for stepped multiples of speed on keys 1-9, perhaps nitpicking over small details LoL



Hey! I aim to be a plus for this fine DC community; my life's motto is to focus on the productive&positive side hence I'm truly fine either way attending on the coding snacks space or here. No biggie from me :Thmbsup:
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com
« Last Edit: May 25, 2023, 10:08 AM by publicdomain »

Deozaan

  • Charter Member
  • Joined in 2006
  • ***
  • Points: 1
  • Posts: 9,777
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Timed Key Repeat, With Variable Timing
« Reply #3 on: May 25, 2023, 11:28 AM »
No worries. It's all good. I was just trying to be helpful. :)

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 554
    • View Profile
    • Donate to Member
Re: Timed Key Repeat, With Variable Timing
« Reply #4 on: May 26, 2023, 08:54 PM »
Previously others have chimed in on Vic's thread when I've suggested a little program.  Infact, someone beat Vic to the punch and came up with a real gem fast as lightning (Folder Renamer by KodeZwerg).  So, folks are apparently keeping an eye on Vic's neck of the woods here.

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Timed Key Repeat, With Variable Timing
« Reply #5 on: May 27, 2023, 06:57 AM »
Alright! Regarding the TKR program, we're starting with an advantage since there's already a previous similar PD release named "KeyLoop" in our repositories:

https://github.com/publicdomain/keyloop

(Loops a key with configurable simulated presses and delay)

Next step is to modify that code to fit this request :Thmbsup:
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Timed Key Repeat, With Variable Timing
« Reply #6 on: July 09, 2023, 07:40 PM »
Hey! I'm currently hired & swamped yet chances are this timed&variable key will be our next PD release  :Thmbsup:

Slow and steady wins the race :D
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 554
    • View Profile
    • Donate to Member
Re: Timed Key Repeat, With Variable Timing
« Reply #7 on: July 10, 2023, 01:22 AM »
No rush, Vic.  Thanks for the update.

At this point it seems it will have to be YOU that puts this together.

I've put basically the same request out to the general community, but not a nibble received.

The basic concept, shortened, is to just keep a loop going, pressing Enter.  Check with some variable on how much time to spend between presses.

The variable can be anywhere:  .ini file, environment variable, text file, etc.

First check the variable.  Let's suppose 5 seconds.
Wait that amount of time.
Press Enter.

Repeat.  Repeat.  Repeat.

Finally, I always want to ask, just in case, what coding language is best for such an assignment?

« Last Edit: July 10, 2023, 01:27 AM by nkormanik »

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Timed Key Repeat, With Variable Timing
« Reply #8 on: July 11, 2023, 03:18 PM »
Thanks for the refreshment and appreciation Nick.

Yes, it is understood the variable to add/subtract from is the one controlling the time in between key presses  :Thmbsup:

... what coding language is best for such an assignment?

There's some foundational C# code posted @ GitHub (as mentioned). It isn't necessarily the ultimate or best language, yet it is the one I'll be using for this implementation  :)

Cheers!
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com
« Last Edit: July 11, 2023, 03:36 PM by publicdomain »

publicdomain

  • Moderator
  • Joined in 2019
  • *****
  • Posts: 736
  • Call me Vic!
    • View Profile
    • Donate to Member
Re: Timed Key Repeat, With Variable Timing
« Reply #9 on: September 02, 2023, 05:24 PM »
Okay! This program is being developed for delivery @ this month (September 2023) :Thmbsup:
My name's Victor but do feel free to call me Vic! (now known as "paradisusvic")

❤️ Support on Patreon @ www.patreon.com/paradisusis
New Email/Paypal: paradisusvicgmail.com

nkormanik

  • Participant
  • Joined in 2010
  • *
  • Posts: 554
    • View Profile
    • Donate to Member
Re: Timed Key Repeat, With Variable Timing
« Reply #10 on: September 03, 2023, 02:26 AM »
Pretty exciting, Vic!