[Gtk-sharp-list] sendkeys, keyboard emulation

alain costanza alaincostanza at gmail.com
Wed Oct 18 10:48:56 EDT 2006


Hello,

after many research over internet I didn't find anything very helpful about
my problem which is the following. 

I need to emulate a keyboard and so send key events.

On the Net I've found interesting things like :

event =   gtk.gdk.Event(gtk.gdk.KEY_PRESS)
event.keyval = ord("A")
event.window = gtk.gdk.get_default_root_window()

But this cannot be applied to Gtk#. It seems i can translate the first line
like this :

Gdk.Event keyEvent =
new Gdk.Event((System.IntPtr)Gdk.EventType.KeyPress);

But after I wanted to use 'KeyValue' property. The problem is that it's only
readable ...

So if someone has already found a solution for that i would appreciate any
help!

Thank you and have a nice day,
alain
 ;)
-- 
View this message in context: http://www.nabble.com/sendkeys%2C-keyboard-emulation-tf2467112.html#a6877948
Sent from the Mono - Gtk# mailing list archive at Nabble.com.



More information about the Gtk-sharp-list mailing list