Results 1 to 6 of 6

Thread: Disable Key in Shell nonfunction after exec a game

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    4

    Disable Key in Shell nonfunction after exec a game

    Here is my situation, I made a shell which disable all the task/shortcut keys like a screensaver. and I set a button inside the shell that it can launch a game(egiabloII) . After I click and run the game, my shortcut keys are back, even if i quit the game, and go back to the shell, the key disable is no longer functioning.

    Anyone know why? Please help, thnx

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    The game probably re-enables all the keys so that they'll work in the game. You'd have to re-disable the keys after the game has finished.
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    4
    how? Is there way that I can make those keys disable in the game?

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well keys like Ctrl, Alt, Del, Tab are all rather integral keys to most games. I doubt most games would be playable otherwise !

    Anyway, are you doing it like this :
    VB Code:
    1. Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, lpvParam As Any, ByVal fuWinIni As Long) As Long
    2. Private Const SPI_SCREENSAVERRUNNING  As Long = 97
    3.  
    4.  
    5. SystemParametersInfo SPI_SCREENSAVERRUNNING, 1&, 0&, 0
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    4
    yes, how about removing keys from registry, does game have alt-tab build in to them?

  6. #6
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Pardon ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

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