[Mono-winforms-list] SendKeys
Martin Hombauer
martin at fony.sk
Wed Jan 31 14:29:58 EST 2007
> 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-1.2.2.1-0.novell
>> " 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.
Thanks for information, Sandy. I hope you're right :)
More information about the Mono-winforms-list
mailing list