I think [active] will tell you if the current patch is in the foreground or background, but I needed something a little deeper. Actually, a guy from the wacom developer team sent me some example code on how to do this at an 'AppleEvents' level and I already have a wacom object of os x how I need it (disconnected from the cursor, even when pd is in the background). Supposedly this "isn't nice" to other apps, but hey, pd is more important than them anyway :)<br>
<br>cheers,<br>Rich<br><br><div class="gmail_quote">On Tue, Nov 17, 2009 at 1:49 AM, PSPunch <span dir="ltr"><<a href="mailto:shima@pspunch.com">shima@pspunch.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Rich,<br>
<br>
I maybe misunderstanding, but maybe [active] or its source code may help you.<br><font color="#888888">
<br>
-- <br>
David Shimamoto<br>
<br>
<br>
</font><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Hi all,<br>
<br>
Anyone know how to tell (on OS X) if pd is in the background or foreground from C? I'm messing with Thomas' [wacom] external, trying to get it to keep the tablet disconnected from the cursor, but it resets every time pd goes to background. So, if I can figure out from the external when pd goes back to the foreground, I can reset it there, at least.<br>
<br>
regards,<br>
Rich<br>
<br>
<br></div></div>
------------------------------------------------------------------------<div class="im"><br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></blockquote><div><div></div><div class="h5">
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br>