[Mono-dev] set mouse position...
buhochileno at gmail.com
buhochileno at gmail.com
Sun Nov 9 11:48:36 EST 2008
Petit Eric wrote:
> 2008/11/9 buhochileno at gmail.com <buhochileno at gmail.com>:
>
>> 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..
>>
> not sur, but you can search arround "overwrite" on the mouse class
>
yeap, not to much luck there either , even if I ovewrite some mouse
event inside a custom control, when I call the function nothing happen
:-( , any other approach like interact with X or using gtk#?
>>> Saludos.
>>>
>> Saludos para ti tambien.
>>
>>>
>>>
>>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>
>
>
>
More information about the Mono-devel-list
mailing list