Home All Groups Group Topic Archive Search About

Access the "global" focused control from C# app-.

Author
13 Apr 2006 10:01 AM
Anders
Hi

Im trying to develop a C# application which interacts with a Fingerprint
scanner.

The appliaction is going to run in the background (and as trayicon).

When my applicatons catches an event from the finger scanner i want to paste
a text into "what ever active textbox control is focused" and the execute a
"press enter command". Eg. a focused textbox control in Internet Explorer.

1. Is this possible in pure managed C#? (If so what direction?)
2. If not. Can I do it unmanged through interop? (If so what direction?)

I really look forward to hear from you

Thanks in regards

Author
13 Apr 2006 5:56 PM
Mattias Sjögren
Anders,

>1. Is this possible in pure managed C#? (If so what direction?)

You could try using the SendKeys class.


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Are all your drivers up to date? click for free checkup

Author
16 Apr 2006 10:54 PM
Anders
>>1. Is this possible in pure managed C#? (If so what direction?)
>
> You could try using the SendKeys class.

Perfect. Fitted my needs excatly.

Regards Anders

Bookmark and Share