<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>Am 10.09.2007 um 20:53 schrieb Kassen:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks a lot,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>thats an easy "workaround"</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Idea: there is alittle app called Platypus. It should be possible to writte alittle scriptstarter and include the command-line starting script.</DIV><DIV>So doubleclickers should still be able to use KBHIT</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I'll try this later..</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I like writing e-mails with funny sounds too ;-)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>especially the smiley makes a nice sound ;-)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><BR><BR><DIV><SPAN class="gmail_quote">On 9/10/07, <B class="gmail_sendername">Spencer Salazar</B> &lt;<A href="mailto:ssalazar@cs.princeton.edu">ssalazar@cs.princeton.edu</A>&gt; wrote:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">  Ideally, the console monitor in miniAudicle could send<BR>keystrokes to KBHit, but this hasn't been implemented yet.</BLOCKQUOTE><DIV><BR><BR>The main strength of this would be that in this case one could make sure that actions like typing a email or editing a softsynth while the the Mini is listening for events don't accidentally affect the Mini (I myself tend to find this amusing  and to result in "happy accidents" but I could imagine it being unwanted). <BR><BR>So, if we know this and know the HID approach is more powerful another take on this matter might be something like this;<BR><BR>Machine.hasFocus(int) //returns 1 is the mini/Audicle/console window has the OS focus, 0 otherwise <BR><BR>This would allow programmers to use the more powerful implementation while having the option to use the KBHit style behaviour, even on a per-device basis. Sadly this feature would require a different implementation for our three platforms which could be a drawback but aside from that it seems win/win. <BR></DIV><BR>Luigi; I would have loved to help you but feel unqualified to talk about such details of OSX behaviour because iI don't have a OSX install. KBHit seems to me like a prime canidate for system dependant behaviour. <BR><BR><BR>Yours,<BR>Kas.<BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">chuck-users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</A></DIV> </BLOCKQUOTE></DIV><BR></BODY></HTML>