[Mono-osx] Porting windows specific functionality to mac
Duane Wandless
duane at wandless.net
Mon Sep 17 14:53:37 UTC 2012
I cannot tell from your questions whether or not you have found MonoMac.
If you have great. If not:
http://www.mono-project.com/MonoMac
http://tirania.org/monomac/
If MonoMac does not provide bindings for CGEventCreateMouseEvent then yes
you can add them using PInvoke.
Duane
On Mon, Sep 17, 2012 at 8:57 AM, Giorgi Dalakishvili
<mcnamaragio at gmail.com>wrote:
> Hello,
>
>
>
> I am porting a Winforms application to Mac and need some help with porting
> windows specific functionality.
>
>
>
> I am using multimedia timers to execute a callback method repeatedly. Is
> there anything similar on Mac OS x and how do I use it from Mono? I am
> aware of NSTimer but it does not have the precision I am looking for.
>
>
>
> Also, I am using mouse hooks to track mouse and SendInput to simulate
> mouse events. I am able to get track mouse with NSEvent but I’m not sure
> how to simulate mouse clicks. I found that it is possible with
> CGEventCreateMouseEvent and CGEventPost but how do I call these from Mono?
> Do I need to use PInvoke?
>
>
>
> Thank you in advance.
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20120917/a3c9a8e8/attachment.html>
More information about the Mono-osx
mailing list