[Mono-dev] set mouse position...
equistango at gmail.com
Sat Nov 8 16:37:46 EST 2008
buhochileno at gmail.com a écrit :
> Petit Eric wrote:
>> 2008/11/7 buhochileno at gmail.com <buhochileno at gmail.com>:
>>> Hi guys:
>>> Sorry, I know that is not the correct list to ask this, but just point
>>> me in the right direction...
>>> is posible to set mouse position and simulate mouse events from
>>> mono+c#+linux fron a console app? (something like interact with X or
>>> work with a hiden gtk# window...)
>> system.windows.form.cursor.position or create manualy the mouse event
>> and then e.position, so answer is yes
> yeap, mouse position is easy thanks!!, but simulate mouse click is
> harder, all solutions that I found need to call API specific functions
> in user32.dll or stuff like that (of course that work only for
> windows...), I can't call to OnMouseClick function due to his protection
> level and also seemsto work for focus windows...
> Any ideas?
"Hi, I'm clippy... it looks like you are trying to automate another
Anyway... I know this is probably not what you are looking for, but if
you need to control another application, it's usually easier to simulate
keyboard than mouse. You may want to read about SendKeys().
More information about the Mono-devel-list