Results 1 to 4 of 4
  1. #1
    Join Date
    February 2010
    Czech R.

    TS3 is consuming key presses from keyboard hook in my plugin


    I have coded simple plug-in that allows me to bind some TS3 actions to special keys (F13-F24).

    I am using Keyboard_LL hook.

    If TS3 windows is not active, everything works as expected (my hook procedure gets called with every key press/release).
    If the TS3 window is activated, my proc is not called.

    I am using this code to set the hook.
    SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc, NULL, 0);
    I think the problem is that I need to set hMod and dwThreadId (the last 2 parameters), but I have absolutely no idea how to get handle to the dll and identifier of this plugins thread.

    If anybody knows what is the problem, I'd be happy to hear it.

    Additional info:
    I tried to use a hook in another executable and I was not getting this strange behavior. So the problem must be in my plug-in and/or team speak.

  2. #2
    Join Date
    March 2010
    For the threadid you can probably use:

    DWORD GetCurrentThreadId(void)

    For the HINSTANCE you could try

    I guess that you need to specify the name of your dll when you call GetModuleHandle.

  3. #3
    Join Date
    February 2010
    Czech R.
    Thanx for your reply.

    I tried your advice and, unfortunately, it did not help. There is nothing else I could do wrong (the plugin is just few lines long), so I guess that it is some bug/feature in TS.

    Thanx for your help anyway.

  4. #4
    Join Date
    January 2010
    You can use qt for this, installing an eventfilter on the QApp would give you all the info you want.

    And the reason your plugin doesnt get called when TS is active is that the events are processed and are not passed trough if processed.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [REQUEST]g-key plugin for every keyboard
    By M1ck3y in forum Client Plugins / Lua Scripts
    Replies: 0
    Last Post: June 18th, 2014, 07:31 PM
  2. g15 keyboard plugin not working correct after updating server
    By dehjvg in forum Bug Reports [EN/DE]
    Replies: 0
    Last Post: May 31st, 2011, 07:44 AM
  3. Keyboard plugin
    By Djinndrache in forum General Questions
    Replies: 2
    Last Post: April 14th, 2011, 02:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts