[Mono-dev] set mouse position...
buhochileno at gmail.com
buhochileno at gmail.com
Sat Nov 8 21:24:40 EST 2008
Ernesto wrote:
> 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
> application...".
>
> 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().
Yeap, simulate keyboard is much easier...but in this case is the
complete gnome desktop, so I have to find a way to control the
mouse...thanks for the sugestions..
>
> Saludos.
Saludos para ti tambien.
>
>
>
>
More information about the Mono-devel-list
mailing list