[Gtk-sharp-list] Send keystroke to gtk window with proccess.start(xsendkeycode)

Juan Carlos F. bioubuntu at gmail.com
Wed Feb 10 10:01:13 EST 2010

Hi. (sorry for my poor english)

I have this code: 

Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.FileName = "gnome-sudoku"

Process sk = new Process();
sk.StartInfo.FileName = "xsendkeys";
sk.StartInfo.Arguments = 95; // F11 key

xsendkeys is an external application to send keystrokes to X. F11 is the
command for view gnome-sudoku in fullscreen mode. The process is lauched one
time, buth the F11 key is send more than one time. Is pressed always, and
the window mode change from normal mode to fullscreen mode all the time,
without stop.

Can anyone help me?
View this message in context: http://old.nabble.com/Send-keystroke-to-gtk-window-with-proccess.start%28xsendkeycode%29-tp27532491p27532491.html
Sent from the Mono - Gtk# mailing list archive at Nabble.com.

More information about the Gtk-sharp-list mailing list