Results 1 to 8 of 8

Thread: stupid hotkeys!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    8
    Hello people,

    I have made a system wide hotkey to play a sound when pressed. It works fine except when I run a game in full screen mode. Like when I run championship manager in windowed mode, the hotkey works, but when I switch the game to full screen mode, the hotkey stops functioning. I have tried to set the thread priority and prioity class for the hotkey program, but it doesn't work. Can anyone suggest anything I could do.

    Chen Ling

  2. #2
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    there is nothing you can do.
    The game probably uses direct x. If direct x hooks the keyboard, it is in fact interrupting the keys. There are two ways a game can do this. One of them doesn't send the keypresses on to windows.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  3. #3
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    it probably still won't work. Game Directx hooks (if that is how it did it) still have priority over all other keyboard input because they bypass the operating system apis altogether.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  4. #4

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    8
    In that case, how does programs such as Roger Wilco or BattleCom work? surely there's some way of doing it.

  5. #5
    Guest
    Take a look at your other thread.

  6. #6
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    doesn't rogerwilco require directx also? It probably hooks the keyboard the same way the game does.
    You can even recieve the window and menu keys before the os gets them.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  7. #7

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    8
    directx? great, I know absolutely nothing on programming with directx, know anywhere I can get some info, would the directx sdk help?

  8. #8

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Posts
    8
    I've just read a whole lot on directinput from msdn site. And I think this might be the answer, thanks for your help, I really appraciated.

    Chen Ling

Posting Permissions

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



Click Here to Expand Forum to Full Width