Hey, a quick topic here, i was just wondering if any programmers out there would be willing to create a simple GUI for testing [scratchblocks] (An executable file, to test [scratchblock] scripts, because lets face it, there is nothing more embarissing than post a script to help someone and it is wrong!
P.S, I do know there is a place to do it on the forum, but you do not exactly want to post tests online!
Thanks,
Dan Jones!
Offline
You should ask this in the Advanced Topics forums.
Offline
Nothing fancy, but it works. Copy and paste this into a NotePad/TextEdit document and save it as "TestBlocks.html":
<script src="http://scratch.mit.edu/ext/blocksplugin/blocksplugin.js"></script> <body> <div id="fill"></div></div><br/><br/> <textarea id="text" rows=30 cols=70></textarea><br/><button onclick="document.getElementById('fill').innerHTML=scratchBlocksPlugin.parseScript(document.getElementById('text').value)">Go!</button> </body>
P.S. It is really, really, really, really ugly, but I'm rather tired and lazy right now.
P.S.S. Simpler way: press the "preview" button before posting something (you need to click on "post reply", at the top-right and bottom-right of a thread, first to get a new text editor where you can preview posts).
Last edited by Hardmath123 (2012-05-31 09:20:38)
Offline
Hardmath123 wrote:
Nothing fancy, but it works. Copy and paste this into a NotePad/TextEdit document and save it as "TestBlocks.html":
Code:
<script src="http://scratch.mit.edu/ext/blocksplugin/blocksplugin.js"></script> <body> <div id="fill"></div></div><br/><br/> <textarea id="text" rows=30 cols=70></textarea><br/><button onclick="document.getElementById('fill').innerHTML=scratchBlocksPlugin.parseScript(document.getElementById('text').value)">Go!</button> </body>P.S. It is really, really, really, really ugly, but I'm rather tired and lazy right now.
P.S.S. Simpler way: press the "preview" button before posting something (you need to click on "post reply", at the top-right and bottom-right of a thread, first to get a new text editor where you can preview posts).
really nice code you created there, unfortunatly not working for me, so i will see if i can edit it to make it look better, and work!
Thanks!
Offline
The easiest, and best way to do this is to use, post reply, instead of quick post, and then when you're done, click preview instead of submit. It will then show you what it looks like, so you can test things before you post. And once you become a scratcher, you can edit mistakes in your posts.
Offline
daniel_j wrote:
Hardmath123 wrote:
Nothing fancy, but it works. Copy and paste this into a NotePad/TextEdit document and save it as "TestBlocks.html":
Code:
<script src="http://scratch.mit.edu/ext/blocksplugin/blocksplugin.js"></script> <body> <div id="fill"></div></div><br/><br/> <textarea id="text" rows=30 cols=70></textarea><br/><button onclick="document.getElementById('fill').innerHTML=scratchBlocksPlugin.parseScript(document.getElementById('text').value)">Go!</button> </body>P.S. It is really, really, really, really ugly, but I'm rather tired and lazy right now.
P.S.S. Simpler way: press the "preview" button before posting something (you need to click on "post reply", at the top-right and bottom-right of a thread, first to get a new text editor where you can preview posts).really nice code you created there, unfortunatly not working for me, so i will see if i can edit it to make it look better, and work!
Thanks!
Hmm, it works for me (but it only works if your machine is connected to the internet). Try testing it in this html viewer.
Offline