[Mono-winforms-list] Simulate mouse position and click...
buhochileno at gmail.com
buhochileno at gmail.com
Sat Nov 8 15:22:20 EST 2008
Hi guys:
I'm trying to simulate some mouse actions from a c# console app with
mono on linux...
Currently set the mouse position is very easy using something like:
System.Drawing.Point point = new System.Drawing.Point(10, 10);
System.Windows.Forms.Cursor.Position = point;
But to simulate mouse click ir harder, most solution on internet use
"user32.dll" API calls that of course only works in windows :-( , I
can't call directly to OnMouseClick due to jis protection level and also
try to write a Forms.Control child class to internally call to the
OnMouseClick function but don't seems to work and documentation say
something about that kind of call are valid only if the windows have
focus (my app don't have a visible window..)
any ideas??
thanks
Mauricio
More information about the Mono-winforms-list
mailing list