Any tricks to get the Global Keyboard Control working in Windows 7?

  • Hello,
    do you run DMX Control as administrator?

    I never had that problem, and if it works without the UAC thats the only reason I could imagine.

    sorry for my bad english ;)

    Chris

    Steuerung: 4 Notebooks, Full-HD Touchscreenmonitor, FX-5, 2*Eurolite USB2DMX 512, Korg nanoKEY, Stairville DMX Splitter, Botex DMX Merger, 2*Stairville DMX Master I, 12 Kanal DMX Mischer
    gesteuert werden Produkte von: BOTEX, Showtec, Stairville, Eurolight, Eurolite, Antari, Martin, AmericanDJ

    Wer (Rechtschreib-)Fehler findet, darf sie -wie üblich- behalten :)

  • Hi,
    I used this function on my old Vista-PC to control the command line tool of DMXC with my Numb-Pad and to flash the submaster-channels with the F2-F12-keys. Now i tryed this function with my Win 7-PC aswell and after starting DMXC with administrator rights once, it worked when DMXC is the active program and without checking "global". When you check "suppress used keys", you should not get any problems as long as DMXC is the active program.
    Regards,
    JP

    im Falle eines Falles klebt Gaffa einfach alles, denn Gaffa ist dein Freund und Helfer :thumbup:

  • Same problem here. (Windows 7, UAC enabled)

    Even with administrative privileges i still get the error. Disabling UAC solves this.

    Stefan
    I don't know how you implemented the hook, but i've done one today:
    The error is ERROR_ACCESS_DENIED, probably when calling SetWindowsHookEx?
    This is how i set up the my hook. (It works pretty good)

    Code
    HHOOK h_kb_hook = SetWindowsHookEx(
            WH_KEYBOARD_LL, 
            &kb_filter_proc, 
            NULL, 
            0);

    The last two paremeters are important hMod and dwThreadId have to be NULL and 0.
    See MSDN why.

    If UAC is enabled and a window from an application that has administrative privileges is active, the hook chain will not be called.
    AFAIK there is nothing you can do except disabling UAC.

    Dennis

  • Newly created posts will remain inaccessible for others until approved by a moderator. The last reply was more than 365 days ago, this thread is most likely obsolete. It is recommended to create a new thread instead.