-
October 13th, 2002, 03:55 PM
#21
I made a mistake, it's not bit 9 but bit 24 of lParam ! I made it works now
e=((lParam & (1 << 24)) != 0);
e is true for a extended key and false for
F1-F12. I put a 'Z' at Buffer[6] if e is true, '0' else. Could you put this in your code ?
-
October 13th, 2002, 03:55 PM
#22
Sorry but it still not work
Here is the patch I made to keyboard.cpp which works at home :
--- keyboard.cpp.old Sun Oct 22 13:56:26 2000
+++ keyboard.cpp Thu Feb 1 14:28:29 2001
@@ -48,7 +48,7 @@
LRESULT CALLBACK KeyboardProc( int code, WPARAM wParam, LPARAM lParam)
{
- bool b;
+ bool b,e;
BYTE h;
BYTE l;
BYTE o;
@@ -60,6 +60,7 @@
{
+ bool b,e;
BYTE h;
BYTE l;
BYTE o;
@@ -60,6 +60,7 @@
{
b=((lParam & (1 << 31)) == 0);
+ e=((lParam & (1 << 24)) != 0);
if (wParam==VK_CONTROL)
{
control=b;
@@ -152,6 +153,10 @@
Buffer[6]='0';
*/
+ if(e)
+ Buffer[6] = 'Z';
+ else
+ Buffer[6] = '0';
Buffer[7]=0;
-
October 13th, 2002, 03:55 PM
#23
I checked not the last one but the previous and it works for me !
It would be good I think to block events from these keys because windows still see them like F1-F12 (like did the webboard tool)
-
October 13th, 2002, 03:55 PM
#24
It's not (F1) 70000 and (Close) 7000Z but 70000Z, I get these code at home. For me it seems to works... What is your keyboard ?
-
October 13th, 2002, 03:55 PM
#25
I bought mine webboard also from Pearl in France (because I'm french too
-
October 13th, 2002, 03:55 PM
#26
Yes It also works with the 1.1 version (as shown in the configure box, because it is version 1.0 in the plugin list)
-
October 13th, 2002, 03:55 PM
#27
I found how to block multimedia keys from reaching windows (for exemple Close key isn't seen anymore like F1 key by windows)
I just put a if statement at the end of the main function of keyboard.cpp to call the keyboard hook for normal keys and just return TRUE for multimedia keys. Are you interested in puting this in your code ?
-
October 13th, 2002, 03:55 PM
#28
I just post my code and dll to stilgar@stack.nl today
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules