[Mono-osx] SendKeys to focused app

Tony Chick tony at newsmaker.us
Wed Feb 4 12:47:28 EST 2009


I have a little Windows.Forms c# app on Windows (.NET, not Mono) that acts as
a web service and receives keystrokes, then sends them to the currently
focused app using SendKeys.Send(key). I'm trying to do a similar thing on
the Mac.

I've installed Mono 2.2 and MonoDevelop on my Mac with OSX Tiger 10.4 and my
app compiles and runs fine, and SendKeys seems to work but all the
keystrokes come back to my app, not the one that is focused on the desktop
that is receiving actual keyboard input. Should SendKeys work?, or is there
some other trick to doing this on OS-X?.
-- 
View this message in context: http://www.nabble.com/SendKeys-to-focused-app-tp21835693p21835693.html
Sent from the Mono - OSX mailing list archive at Nabble.com.



More information about the Mono-osx mailing list