Page 3 of 3 FirstFirst 123
Results 21 to 28 of 28

Thread: Webboard

  1. #21
    Join Date
    Jan 2001
    Posts
    14

    Default

    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 ?

  2. #22
    Join Date
    Jan 2001
    Posts
    14

    Default

    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;

  3. #23
    Join Date
    Jan 2001
    Posts
    14

    Default

    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)

  4. #24
    Join Date
    Jan 2001
    Posts
    14

    Default

    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 ?

  5. #25
    Join Date
    Jan 2001
    Posts
    14

    Default

    I bought mine webboard also from Pearl in France (because I'm french too

  6. #26
    Join Date
    Jan 2001
    Posts
    14

    Default

    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)

  7. #27
    Join Date
    Jan 2001
    Posts
    14

    Default

    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 ?

  8. #28
    Join Date
    Jan 2001
    Posts
    14

    Default

    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
  •