Check keyboard buffer without the program being in focus

Check keyboard buffer without the program being in focus

Postby Giovany Vecchi » Wed Jan 29, 2020 7:24 pm

I have a program running on Tray and I am trying to check for a key combination that may be pressed.
Example:
Pressing CTRL + J
The problem is that the program is minimized in the tray. the CTRL key I can check with GETKEYSTATE plus the letter J key only with LastKey (), but it works if the program is in focus.
Is there another function that could read the keyboard buffer without the program being in focus?
User avatar
Giovany Vecchi
 
Posts: 207
Joined: Mon Jun 05, 2006 9:39 pm
Location: Brasil

Re: Check keyboard buffer without the program being in focus

Postby karinha » Fri Jan 31, 2020 2:07 pm

Super Difícil. Talvez, usando o agendado de tarefas. Talvez, usando um TIMER. Talvez com HB_KeyPut() do Harbour.

So hard. Perhaps, using the scheduled task. Perhaps, using a TIMER. Maybe with HB_KeyPut () from Harbour.

https://github.com/Petewg/harbour-core/wiki/hb_J_K

Sorry, Abs.

Regards.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7260
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 20 guests