Global MessageFilters?

  • Thread starter Thread starter Dan Burke
  • Start date Start date
D

Dan Burke

Here is my problem:

At my employment we have a custom software application that we support. It
has a password which is derived from the current date, and is pretty tedious
to type. We also do a lot of remote debugging through software like
PCAnywhere, Radmin, etc., where not every app supports clipboard
copying/pasting (thus we can't always copy the password to the clipboard and
paste it). What I want to do is create an application in C# that, upon the
pressing of F11, it essentially "types" the characters- not pasting, but
rather emitting the keyboard keycodes to windows.

I was thinking I would implement IMessageFilter in a class, but that only
gets messages when it's active or if the mouse passes over the form, which
isn't helpful. Does anyone have any suggestions on how to do this in
C#/.Net?

Thanks
 
Dan said:
Here is my problem:

At my employment we have a custom software application that we support. It
has a password which is derived from the current date, and is pretty tedious
to type. We also do a lot of remote debugging through software like
PCAnywhere, Radmin, etc., where not every app supports clipboard
copying/pasting (thus we can't always copy the password to the clipboard and
paste it). What I want to do is create an application in C# that, upon the
pressing of F11, it essentially "types" the characters- not pasting, but
rather emitting the keyboard keycodes to windows.

I was thinking I would implement IMessageFilter in a class, but that only
gets messages when it's active or if the mouse passes over the form, which
isn't helpful. Does anyone have any suggestions on how to do this in
C#/.Net?

Thanks

Here is the article on MSDN, sounds like what you need:

http://msdn.microsoft.com/msdnmag/issues/02/10/CuttingEdge/

Andrey
 
Back
Top