FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Can raw keyboard input be implemented????
Posts: 344
Joined: Tue Oct 11, 2005 11:33 AM
Can raw keyboard input be implemented????
Posted: Thu Oct 02, 2008 12:33 PM
Olá Antonio,

Não sei se isto tem algo a ver com o que procura:

#define WH_MIN  (-1)
#define WH_MSGFILTER  (-1)
#define WH_JOURNALRECORD  0
#define WH_JOURNALPLAYBACK  1
#define WH_KEYBOARD  2
#define WH_GETMESSAGE  3
#define WH_CALLWNDPROC  4
#define WH_CBT  5
#define WH_SYSMSGFILTER  6
#define WH_MOUSE  7


Desculpe não esntendo muito de "C++"

Veja este link também: http://bytes.com/forum/thread534448.html

Saludos,

Rossine.
Obrigado, Regards, Saludos



Rossine.



Harbour and Harbour++
Posts: 344
Joined: Tue Oct 11, 2005 11:33 AM
Can raw keyboard input be implemented????
Posted: Thu Oct 02, 2008 12:50 PM
Obrigado, Regards, Saludos



Rossine.



Harbour and Harbour++
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Can raw keyboard input be implemented????
Posted: Thu Oct 02, 2008 01:04 PM

Rossine,

Thanks for the link. I had already reviewed it before :-)

We need to know the right way to translate WM_INPUT into WM_(mouse) and WM_(keyb) messages (if possible!) :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 67
Joined: Thu Jan 05, 2006 10:35 PM
Can raw keyboard input be implemented????
Posted: Thu Oct 02, 2008 09:29 PM

Antonio Said -
The problem is that WM_INPUT does not provide info about the windows handle where the event hapenned. Meanwhile I am typing this an idea arised: if our windows has the focus and we get a WM_INPUT message then it is for us. If we don't have the focus, it is not for us...

That is a good thought but-
Say we have 6 Touch Screens, 6 mouse and 6 keyboards on one pc displaying the same application in each screen. (If my application is app.exe it will be executing 6 times, once for each screen) Can we have the different application keep focus on the screen or dialog that each person is entering data on?
Thanks Mike

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Can raw keyboard input be implemented????
Posted: Sat Oct 04, 2008 06:43 PM

Mike,

I have been thinking about it, and I see there is a major problem with it:

We can't have several applications having the focus at the same time, in the same computer. So it may be impossible to manage them simultaneously.

Unless I am missing something...

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion