CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2005
    Posts
    10

    Question How to Disabling F1 Help Key

    Hi Friends,

    Please help me to solve this problem. I am trying Hook all the keyboard events for my application by using SetWindowsHookEx for all WH_KEYBOARD events .

    I am sucessfull with this by trapping all the keys except F1 key.


    I need as following
    When my application is Up ,if I am pressing F1 Key from IE , it should not show the Help Window. I have to disable this Help.

    Any Help on this would be greatly appreciated

    Thanks in Advance

    Jomy K D

  2. #2
    Join Date
    May 2005
    Posts
    4,954

    Re: How to Disabling F1 Help Key

    Did you try with the WH_KEYBOARD_LL hook?

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  3. #3
    Join Date
    Feb 2005
    Posts
    10

    Re: How to Disabling F1 Help Key

    Thanks for your response

    Sorry it won't work for this . I hope it is for the Alt, Ctl, Esc etc. (System Key combinations).

    Please let me know if you have any other ideas

    Thanks and Regards
    Jomy K D

  4. #4
    Join Date
    May 2005
    Posts
    4,954

    Re: How to Disabling F1 Help Key

    Quote Originally Posted by jomykd
    Thanks for your response

    Sorry it won't work for this . I hope it is for the Alt, Ctl, Esc etc. (System Key combinations).

    Please let me know if you have any other ideas

    Thanks and Regards
    Jomy K D
    Using WH_KEYBOARD_LL should work I just tested it and it looks ok, you can intercept the VK_F1 before it is getting to IE.

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  5. #5
    Join Date
    Feb 2005
    Posts
    10

    Re: How to Disabling F1 Help Key

    Thanks
    It is working with WH_KEYBOARD_LL

    Thanks

    Jomy K D

  6. #6
    Join Date
    May 2005
    Posts
    4,954

    Re: How to Disabling F1 Help Key

    You are welcome

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  7. #7
    Join Date
    May 2001
    Location
    Oslo, Norway
    Posts
    610

    Re: How to Disabling F1 Help Key

    Can I ask you why are you halting IE's Help feature ?

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

Featured