Author Topic: Is it possible to inject keystrokes into the keyboard buffer?  (Read 1901 times)

0 Members and 1 Guest are viewing this topic.

Offline hanness

  • Forum Regular
  • Posts: 210
    • View Profile
Is it possible in QB64 to inject key presses into the keyboard buffer via code as if someone pressed those keys on the keyboard?


Offline euklides

  • Forum Regular
  • Posts: 128
    • View Profile
Re: Is it possible to inject keystrokes into the keyboard buffer?
« Reply #1 on: April 12, 2020, 05:58:58 am »
like 'Sendkey' in VBA...
Why not yes ?

Marked as best answer by hanness on April 15, 2020, 03:55:33 am

Offline Ashish

  • Forum Resident
  • Posts: 630
  • Never Give Up!
    • View Profile
Re: Is it possible to inject keystrokes into the keyboard buffer?
« Reply #2 on: April 12, 2020, 08:48:14 am »
I think you want something like this - http://www.qb64.org/wiki/SCREENPRINT
if (Me.success) {Me.improve()} else {Me.tryAgain()}


My Projects - https://github.com/AshishKingdom?tab=repositories
OpenGL tutorials - https://ashishkingdom.github.io/OpenGL-Tutorials