mail-archives/mono-osx/2012-September/005085.html

137 строки
5.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [Mono-osx] Porting windows specific functionality to mac
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-osx%40lists.ximian.com?Subject=Re%3A%20%5BMono-osx%5D%20Porting%20windows%20specific%20functionality%20to%20mac&In-Reply-To=%3C1347906897287-4656666.post%40n4.nabble.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<style type="text/css">
pre {
white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */
}
</style>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="005084.html">
<LINK REL="Next" HREF="005086.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-osx] Porting windows specific functionality to mac</H1>
<B>George</B>
<A HREF="mailto:mono-osx%40lists.ximian.com?Subject=Re%3A%20%5BMono-osx%5D%20Porting%20windows%20specific%20functionality%20to%20mac&In-Reply-To=%3C1347906897287-4656666.post%40n4.nabble.com%3E"
TITLE="[Mono-osx] Porting windows specific functionality to mac">mcnamaragio at gmail.com
</A><BR>
<I>Mon Sep 17 18:34:57 UTC 2012</I>
<P><UL>
<LI>Previous message: <A HREF="005084.html">[Mono-osx] Porting windows specific functionality to mac
</A></li>
<LI>Next message: <A HREF="005086.html">[Mono-osx] Porting windows specific functionality to mac
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#5085">[ date ]</a>
<a href="thread.html#5085">[ thread ]</a>
<a href="subject.html#5085">[ subject ]</a>
<a href="author.html#5085">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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?
Duane Wandless wrote
&gt;<i>
</I>&gt;<i> I cannot tell from your questions whether or not you have found MonoMac.
</I>&gt;<i> If you have great. If not:
</I>&gt;<i> <A HREF="http://www.mono-project.com/MonoMac">http://www.mono-project.com/MonoMac</A>
</I>&gt;<i> <A HREF="http://tirania.org/monomac/">http://tirania.org/monomac/</A>
</I>&gt;<i>
</I>&gt;<i> If MonoMac does not provide bindings for CGEventCreateMouseEvent then yes
</I>&gt;<i> you can add them using PInvoke.
</I>&gt;<i>
</I>&gt;<i> Duane
</I>&gt;<i>
</I>&gt;<i> On Mon, Sep 17, 2012 at 8:57 AM, Giorgi Dalakishvili
</I>&gt;<i> &lt;mcnamaragio@&gt;wrote:
</I>&gt;<i>
</I>&gt;&gt;<i> Hello,
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> I am porting a Winforms application to Mac and need some help with
</I>&gt;&gt;<i> porting
</I>&gt;&gt;<i> windows specific functionality.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> I am using multimedia timers to execute a callback method repeatedly. Is
</I>&gt;&gt;<i> there anything similar on Mac OS x and how do I use it from Mono? I am
</I>&gt;&gt;<i> aware of NSTimer but it does not have the precision I am looking for.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Also, I am using mouse hooks to track mouse and SendInput to simulate
</I>&gt;&gt;<i> mouse events. I am able to get track mouse with NSEvent but I&#8217;m not sure
</I>&gt;&gt;<i> how to simulate mouse clicks. I found that it is possible with
</I>&gt;&gt;<i> CGEventCreateMouseEvent and CGEventPost but how do I call these from
</I>&gt;&gt;<i> Mono?
</I>&gt;&gt;<i> Do I need to use PInvoke?
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> Thank you in advance.
</I>&gt;&gt;<i>
</I>&gt;&gt;<i> _______________________________________________
</I>&gt;&gt;<i> Mono-osx mailing list
</I>&gt;&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at .ximian</A>
</I>&gt;&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</A>
</I>&gt;&gt;<i>
</I>&gt;&gt;<i>
</I>&gt;<i>
</I>&gt;<i> _______________________________________________
</I>&gt;<i> Mono-osx mailing list
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at .ximian</A>
</I>&gt;<i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</A>
</I>&gt;<i>
</I>
--
View this message in context: <A HREF="http://mono.1490590.n4.nabble.com/Porting-windows-specific-functionality-to-mac-tp4656663p4656666.html">http://mono.1490590.n4.nabble.com/Porting-windows-specific-functionality-to-mac-tp4656663p4656666.html</A>
Sent from the Mono - OSX mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: &lt;<A HREF="http://lists.ximian.com/pipermail/mono-osx/attachments/20120917/87c632b6/attachment.html">http://lists.ximian.com/pipermail/mono-osx/attachments/20120917/87c632b6/attachment.html</A>&gt;
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="005084.html">[Mono-osx] Porting windows specific functionality to mac
</A></li>
<LI>Next message: <A HREF="005086.html">[Mono-osx] Porting windows specific functionality to mac
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#5085">[ date ]</a>
<a href="thread.html#5085">[ thread ]</a>
<a href="subject.html#5085">[ subject ]</a>
<a href="author.html#5085">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-osx">More information about the Mono-osx
mailing list</a><br>
</body></html>