зеркало из https://github.com/mono/mail-archives.git
137 строки
5.7 KiB
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
|
||
|
><i>
|
||
|
</I>><i> I cannot tell from your questions whether or not you have found MonoMac.
|
||
|
</I>><i> If you have great. If not:
|
||
|
</I>><i> <A HREF="http://www.mono-project.com/MonoMac">http://www.mono-project.com/MonoMac</A>
|
||
|
</I>><i> <A HREF="http://tirania.org/monomac/">http://tirania.org/monomac/</A>
|
||
|
</I>><i>
|
||
|
</I>><i> If MonoMac does not provide bindings for CGEventCreateMouseEvent then yes
|
||
|
</I>><i> you can add them using PInvoke.
|
||
|
</I>><i>
|
||
|
</I>><i> Duane
|
||
|
</I>><i>
|
||
|
</I>><i> On Mon, Sep 17, 2012 at 8:57 AM, Giorgi Dalakishvili
|
||
|
</I>><i> <mcnamaragio@>wrote:
|
||
|
</I>><i>
|
||
|
</I>>><i> Hello,
|
||
|
</I>>><i>
|
||
|
</I>>><i>
|
||
|
</I>>><i>
|
||
|
</I>>><i> I am porting a Winforms application to Mac and need some help with
|
||
|
</I>>><i> porting
|
||
|
</I>>><i> windows specific functionality.
|
||
|
</I>>><i>
|
||
|
</I>>><i>
|
||
|
</I>>><i>
|
||
|
</I>>><i> I am using multimedia timers to execute a callback method repeatedly. Is
|
||
|
</I>>><i> there anything similar on Mac OS x and how do I use it from Mono? I am
|
||
|
</I>>><i> aware of NSTimer but it does not have the precision I am looking for.
|
||
|
</I>>><i>
|
||
|
</I>>><i>
|
||
|
</I>>><i>
|
||
|
</I>>><i> Also, I am using mouse hooks to track mouse and SendInput to simulate
|
||
|
</I>>><i> mouse events. I am able to get track mouse with NSEvent but I’m not sure
|
||
|
</I>>><i> how to simulate mouse clicks. I found that it is possible with
|
||
|
</I>>><i> CGEventCreateMouseEvent and CGEventPost but how do I call these from
|
||
|
</I>>><i> Mono?
|
||
|
</I>>><i> Do I need to use PInvoke?
|
||
|
</I>>><i>
|
||
|
</I>>><i>
|
||
|
</I>>><i>
|
||
|
</I>>><i> Thank you in advance.
|
||
|
</I>>><i>
|
||
|
</I>>><i> _______________________________________________
|
||
|
</I>>><i> Mono-osx mailing list
|
||
|
</I>>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at .ximian</A>
|
||
|
</I>>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</A>
|
||
|
</I>>><i>
|
||
|
</I>>><i>
|
||
|
</I>><i>
|
||
|
</I>><i> _______________________________________________
|
||
|
</I>><i> Mono-osx mailing list
|
||
|
</I>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">Mono-osx at .ximian</A>
|
||
|
</I>><i> <A HREF="http://lists.ximian.com/mailman/listinfo/mono-osx">http://lists.ximian.com/mailman/listinfo/mono-osx</A>
|
||
|
</I>><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: <<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>>
|
||
|
</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>
|