Click to See Complete Forum and Search --> : Keyboard and Mouse Hook
yogiyang
May 7th, 2008, 04:34 AM
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
Hack
May 7th, 2008, 05:47 AM
Thank you for your submission.
Per this (http://www.vbforums.com/showthread.php?t=337258) 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.
yogiyang
May 7th, 2008, 07:41 AM
Hack,
Sorry I forgot to remove the compiled DLL. :mad:
Will be more careful next time. :)
DigiRev
May 22nd, 2008, 09:39 PM
Very useful. Clean code too. :D
Which version(s) of Windows have you tested this on? It works on XP and I will probably test it on 98 soon.
DigiRev
May 22nd, 2008, 10:07 PM
Hm, noticed something. If I show characters being typed using Chr$(KeyCode) it shows them as all capitals. :confused:
yogiyang
May 23rd, 2008, 06:14 AM
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.