<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;">
<p><br>
</p>
<p></p>
<div><i>>You should get "42" in the nbx.</i></div>
<p></p>
</blockquote>
<p></p>
<div><br>
</div>
<div>Thats right, this was the type of thing I was guessing when I mentioned the html/javascript thing.</div>
<div><br>
</div>
<div>I`m not shy to say that my knowledge on javascript in almost null, but I handle normal html+css.</div>
<div><br>
</div>
<div>We should think what is best:</div>
<div><br>
</div>
<div>A .pd file that contains all the <html>,</div>
<div><br>
</div>
<div>An .html file that contains the .pd inside a <code>,</div>
<div><br>
</div>
<div>or leaving them separated and having some sort of [htmlcanvas].</div>
<div><br>
</div>
<div>I think the “developer tools” is the natural Editor for any of the above.</div>
<div><br>
</div>
<div>L</div>
<div><br>
</div>
<br>
<p></p>
<p><br>
</p>
<div id="Signature"><font face="Courier New, Courier, Monospace" size="2">Mensaje telepatico asistido por maquinas.</font>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Jonathan Wilkes <jancsika@yahoo.com><br>
<b>Sent:</b> Friday, January 27, 2017 3:48 AM<br>
<b>To:</b> Lucas Cordiviola; Alexandre Torres Porres; pd-list@lists.iem.at<br>
<b>Subject:</b> Re: [PD] Purr Data rc4</font>
<div> </div>
</div>
<div>
<div style="color:#000; background-color:#fff; font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:16px">
<div id="yui_3_16_0_ym19_1_1485478375518_16198"><i id="yui_3_16_0_ym19_1_1485478375518_16185">>>Try this:</i><i><br>
</i></div>
<div id="yui_3_16_0_ym19_1_1485478375518_16316"><i id="yui_3_16_0_ym19_1_1485478375518_16315">>>nw.Window.open("D:/purr-data-clean/win32_inno/build/doc/1.manual/x3.htm");</i>
</div>
<div class="qtdSeparateBR"><br>
<br>
</div>
<div class="yahoo_quoted" id="yui_3_16_0_ym19_1_1485478375518_16178" style="display:block">
<div id="yui_3_16_0_ym19_1_1485478375518_16177" style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:16px">
<div id="yui_3_16_0_ym19_1_1485478375518_16176" style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; font-size:16px">
<div class="y_msg_container" id="yui_3_16_0_ym19_1_1485478375518_16212">
<div id="yiv9551383655">
<div dir="ltr" id="yui_3_16_0_ym19_1_1485478375518_16211">
<div dir="ltr" id="yiv9551383655divtagdefaultwrapper" style="font-size:12pt; color:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<blockquote style="margin:0 0 0 40px; border:none; padding:0px">
<div></div>
</blockquote>
<div></div>
<div id="yui_3_16_0_ym19_1_1485478375518_16220"><br clear="none">
</div>
<div id="yui_3_16_0_ym19_1_1485478375518_16221">> Works, but i don't have “file edit view put media ...” in that window. On my previous example i added "_self" to window.open.</div>
<div id="yui_3_16_0_ym19_1_1485478375518_16223">
<div id="yui_3_16_0_ym19_1_1485478375518_16224"><br clear="none">
</div>
<div id="yui_3_16_0_ym19_1_1485478375518_16772">Right, these are just parts of the GUI toolkit's interface.  You are directly using
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1485478375518_16672">it here without Pd even knowing you've created it.  Currently the only way you
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1485478375518_16740">can reliably interact with Pd from there is send messages to global receivers as
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1485478375518_16660">I outline below with the pdsend method.</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1485478375518_16676"><br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1485478375518_16739">For example, if you got the "pd dsp 1" example working, try creating a new
<br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1485478375518_16648">patch and put [receive the_answer]---[nbx] in it.  Now type</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1485478375518_16847">pdgui.pdsend("the_answer 42");</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1485478375518_16834"><br>
</div>
<div dir="ltr" id="yui_3_16_0_ym19_1_1485478375518_16835">You should get "42" in the nbx.<br>
</div>
</div>
<div></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>