Can raw keyboard input be implemented????

Postby Rossine » Thu Oct 02, 2008 12:33 pm

Olá Antonio,

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

Code: Select all  Expand view
#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++
Rossine
 
Posts: 344
Joined: Tue Oct 11, 2005 11:33 am

Postby Rossine » Thu Oct 02, 2008 12:50 pm

Obrigado, Regards, Saludos

Rossine.

Harbour and Harbour++
Rossine
 
Posts: 344
Joined: Tue Oct 11, 2005 11:33 am

Postby Antonio Linares » Thu Oct 02, 2008 1: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Mike Buckler » Thu Oct 02, 2008 9: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
Mike Buckler
 
Posts: 67
Joined: Thu Jan 05, 2006 10:35 pm
Location: Canada

Postby Antonio Linares » Sat Oct 04, 2008 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 73 guests