Thanks for your reply.
Yes, I am using MonoMac.
I was unable to find anything related to CGEventCreateMouseEvent in MonoMac docs. Which library should I PInvoke?
Any thoughts about high precision timer?
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="quote dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">Duane Wandless wrote</div>
I cannot tell from your questions whether or not you have found MonoMac.
If you have great. If not:
If MonoMac does not provide bindings for CGEventCreateMouseEvent then yes
you can add them using PInvoke.
On Mon, Sep 17, 2012 at 8:57 AM, Giorgi Dalakishvili
<<a href="/user/SendEmail.jtp?type=node&node=4656666&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>>wrote:
> 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
> <a href="/user/SendEmail.jtp?type=node&node=4656666&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>
Mono-osx mailing list
<a href="/user/SendEmail.jtp?type=node&node=4656666&i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mono.1490590.n4.nabble.com/Porting-windows-specific-functionality-to-mac-tp4656663p4656666.html">Re: Porting windows specific functionality to mac</a><br/>
Sent from the <a href="http://mono.1490590.n4.nabble.com/Mono-OSX-f1546893.html">Mono - OSX mailing list archive</a> at Nabble.com.<br/>