• The final working code was:

    <html>
     <head>
     </head>
     <body>
      <script src="https://www.puck-js.com/puck.js"></­script>
      <script>
          var d = new Date();
          var n = Math.round(d.getTime()/1000);
          var puckCommand = String.fromCharCode(16)+"setTime(" + n + ")\n";
      </script>
       <button onclick="Puck.write(puckCommand);">Set The Time</button>
       <button onclick="Puck.eval('new Date().toString()',function(x) { console.log(x); })">Get The Time</button>
       </body>
    </html>
    

    I never got \x10 working in the code. As you said, there must be some HTML escaping going on somewhere.

About

Avatar for ConorONeill @ConorONeill started