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

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to