May 7th, 2008, 04:34 AM
#1
Thread Starter
Addicted Member
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
Last edited by Hack; May 7th, 2008 at 05:46 AM .
Reason: Removed Compiled Code From Attachment
May 7th, 2008, 05:47 AM
#2
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.
May 7th, 2008, 07:41 AM
#3
Thread Starter
Addicted Member
Re: Keyboard and Mouse Hook
Hack,
Sorry I forgot to remove the compiled DLL.
Will be more careful next time.
May 22nd, 2008, 09:39 PM
#4
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.
May 22nd, 2008, 10:07 PM
#5
Re: Keyboard and Mouse Hook
Hm, noticed something. If I show characters being typed using Chr$(KeyCode) it shows them as all capitals.
May 23rd, 2008, 06:14 AM
#6
Thread Starter
Addicted Member
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
Forum Rules
Click Here to Expand Forum to Full Width