[Mono-winforms-list] SendKeys

Martin Hombauer martin at fony.sk
Wed Jan 31 16:44:25 EST 2007

>> -----Original Message-----
>> From: mono-winforms-list-bounces at lists.ximian.com [mailto:mono-
>> winforms-list-bounces at lists.ximian.com] On Behalf Of Martin Hombauer
>> Sent: miércoles, 31 de enero de 2007 20:30
>> To: mono-winforms-list at lists.ximian.com
>> Subject: Re: [Mono-winforms-list] SendKeys
>>> On 1/31/07, martin at fony.sk <martin at fony.sk> wrote:
>>>>> Hi,
>>>>>> -----Original Message-----
>>>>>> From: mono-winforms-list-bounces at lists.ximian.com [mailto:mono-
>>>> winforms-list-bounces at lists.ximian.com] On Behalf Of martin at fony.sk
>>>> Sent: miércoles, 31 de enero de 2007 9:53
>>>>>> To: mono-winforms-list at lists.ximian.com
>>>>>> Subject: [Mono-winforms-list] SendKeys
>>>>>> Hi,
>>>>>> I am building an application with virtual keyboard, using
>>>> touchscreen. I
>>>>>> need to send (simulate) a key event when I press button. In
>> windows
>>>> .NET,
>>>>>> there's a method called System.Windows.Forms.SendKeys.Send(),
>> which
>>>> simply
>>>>>> does this thing. But in Mono, compiling results in "The requested
>>>> feature
>>>>>> is not implemented."
>>>>>> Is there any other way to make this work? Does anybody knows,
>> when
>>>> will be
>>>>>> this method implemented in Mono?
>>>>> SendKeys is already implemented (though not a long time ago), so
>> which
>>>> version of mono are you using?
>>>>> Rolf
>>>> I am using mono-core-
>>>> " rpm -qa | grep mono-core* "
>>>> I downloaded RPMs for Fedora 5, added them to yum repository and
>>>> installed.
>>>> Is SendKeys.Send() method ready for Fedora 5?
>>> I believe SendKeys is new to Mono 1.2.3, which has not quite been
>>> released yet (there are preview releases available for download,
>>> though).  See the draft of the release notes:
>>> http://go-mono.com/archive/1.2.3/
>>> Best,
>>> Sandy
>> Thanks Sandy, I though so.
>> For Rolf:
>> Monodevelep knows SendKeys.Send() method after adding
>> System.Windows.Forms.dll to references, everything seems ok, there are
>> no errors or warnings after compilation, but when application starts
>> and
>> I call that method (by pressing a button), application crashes with
>> "The
>> requested feature is not implemented" and other error messages. It
>> seems
>> like the method is implemented, but it is not.
>> There is also a bug-report:
>> http://lists.ximian.com/pipermail/mono-bugs/2006-November/050592.html
>> I hope the function will be soon implemented, because I cant find other
>> way to make virtual keyboard work, I started programming in C#
>> recently.
>> I tried to start external application xsendkey to send key event to my
>> application, but it is not working fine, because in my application,
>> there is gecko-sharp widget (mozilla window) and I cant get it focused
>> when starting xsendkey so the text cannot by written, for example, in a
>> form on webpage. That is a reason, why I need to send key events to my
>> application.
> It is implemented, just not in the version you have :)
> Rolf

Have you ever use that method? How? Help me if you can :)

I have version and it is the newest on Mono's website.

For example, SendKeys.Send("{ENTER}") is not working nor 
SendKeys.Send("a"). I have tried everything, not only these examples. 
Just using "SendKeys.Send()" with no arguments makes no error, but it is 
doing nothing, of course.

Site http://go-mono.com/archive/1.2.3/ (from Sandy) says:
New in Mono 1.2.3:
SendKeys (1.1) has been implemented [Andreia Gaita]

But there's no download link, they're just testing it now.

More information about the Mono-winforms-list mailing list