Results 1 to 6 of 6

Thread: Keyboard and Mouse Hook

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Location
    India
    Posts
    227

    Keyboard and Mouse Hook

    This non-visual component is a fully functional Global (System Wide) Keyboard and Mouse Hook.

    It can catch all Keyboard and Mouse activities in any applications even if your application is not in fore front that is even if your application using this component is Inactive.

    Hope you enjoy using this as much as I have enjoyed using it in many of my applications.

    Regards,

    Yogi Yang
    Attached Files Attached Files
    Last edited by Hack; May 7th, 2008 at 05:46 AM. Reason: Removed Compiled Code From Attachment

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Keyboard and Mouse Hook

    Thank you for your submission.

    Per this CodeBank policy, I have edited your attachment and removed all compiled code.

    We welcome and appreciate all entries into our Codebank, but ask that source code only be included with anything attached.

    Thank you.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Location
    India
    Posts
    227

    Re: Keyboard and Mouse Hook

    Hack,

    Sorry I forgot to remove the compiled DLL.

    Will be more careful next time.

  4. #4
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Keyboard and Mouse Hook

    Very useful. Clean code too.

    Which version(s) of Windows have you tested this on? It works on XP and I will probably test it on 98 soon.

  5. #5
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Re: Keyboard and Mouse Hook

    Hm, noticed something. If I show characters being typed using Chr$(KeyCode) it shows them as all capitals.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2007
    Location
    India
    Posts
    227

    Re: Keyboard and Mouse Hook

    Thanks for trying it out.

    It works with all versions of Windows from 9x to 2003.

    Not tested on 2008 though.

    It is case insesitive to shift key.

    You will have to check for shift key status to know as to which of the shift keys (ctrl/shift/alt) are pressed.

    I will post sample soon for better understanding.

    Regards,

    Yogi Yang

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