Ok...please bear with me, as i continue to slowly get familiar with learning PD!&nbsp; <br>I&#39;ve managed to get a working start, using a sendkey VB script graciously written up by someone from the PD forum.&nbsp; Using bonk~ and moses~, i&#39;m able to split incoming audio to loud and soft levels, which then send commands to open two separate versions of the sendkey vb script - one to type a key for loud, the other to type something different for the soft sound input.&nbsp; Problem is that the script seems a bit slow - there&#39;s a noticeable delay when sending signals from PD to the VB script then to the final program receiving the text strings.&nbsp; i&#39;m hoping to get speedier results either going the sendOSC route, or by using one of Patrice Colet&#39;s external scripts.&nbsp; i&#39;m including a link to the zipped copy of my PD project from the PD forum:<br>
<a href="http://puredata.hurleur.com/viewtopic.php?pid=7514#p7514">http://puredata.hurleur.com/viewtopic.php?pid=7514#p7514</a><br><br><br>So here is my new round of still-newbie questions:<br><br>1.&nbsp; How do i install and use the external scripts winkey and/or kbdstroke?&nbsp; Or do i need to just call those externals from within pd somehow?&nbsp; <br>
2.&nbsp; I&#39;m trying to emulate Dan Wilcox&#39;s (aka: robotcowboy&#39;s) sendOSC method- i seem to be able to connect to the OSC port, but i don&#39;t know how to activate the &#39;sendkeys&#39; script.&nbsp; I get a &#39;no method for &#39;bang&#39;&#39; error when i try to test with a straight message bang:<br>
<br><blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">sendOSC: connected to port localhost:9001 (hSock=11213640) protocol = UDP<br>error: sendOSC: no method for &#39;bang&#39;</blockquote>
<div><br>Can someone hold my hand and show me how to call &#39;sendkeys&#39; from within PD to send strings/text to another application?&nbsp; i&#39;m hoping this method will be faster than the VB script method...<br><br>i&#39;m really sorry for hogging up the PD-list with this - i&#39;m getting so close now!&nbsp; Thanks ever so much for all your collective help!<br>
<br>Hugh<br></div><br><div class="gmail_quote">On Thu, May 8, 2008 at 6:02 PM, Patrice Colet &lt;<a href="mailto:pat@mamalala.org">pat@mamalala.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Patrice Colet a écrit :<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
&nbsp;Hi I&#39;ve developped this external for windows last year, this emulate keystrokes, the result of ascii code depends on your hardware, it uses kbd_event API, but I believe the python script from previous messages that uses sendkey would be much better.<br>

<br></div>
&nbsp;For example ou will have to use messages like this:<br>
<br>
[downkey 18, key 9, key 9, upkey 18( to emulate alt+tab+tab combination, .<div class="Ih2E3d"><br>
<br>
&nbsp;Use it at your own risk, good luck.<br>
</div></blockquote>
<br>
ooops, I wanted to say &quot;the result of the string sent to the object depends on the hardware&quot;<br>
<br>
&nbsp;and not &quot;the result of ascii code depends on your hardware&quot;.<br>
<br>
&nbsp;also if you click on the message that emulate keystroke, the focused window will still be the pd patch because it focuses on mouse release, also the object doesn&#39;t seem to work if we use [key] for triggering the message, so I put a delay between the bang and the message, then the message is sent after the mouse click is released.<br>

<br>
an example is attached<br>
<br>
thankyou<br>
</blockquote></div><br><br clear="all"><br>-- <br>Hugh Sung<br><a href="http://www.hughsung.com">www.hughsung.com</a><br><a href="http://www.TabletPCMusician.com">www.TabletPCMusician.com</a><br><a href="http://www.musicmeetstech.com">www.musicmeetstech.com</a>