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.

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to