This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Requests
  •  » Possible execuatble file to test forum scratch blocks?

#1 2012-05-31 08:47:54

daniel_j
Scratcher
Registered: 2012-05-22
Posts: 100+

Possible execuatble file to test forum scratch blocks?

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!


http://i50.tinypic.com/2dhgnsx.jpg

Offline

 

#2 2012-05-31 08:51:36

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Possible execuatble file to test forum scratch blocks?

You should ask this in the Advanced Topics forums.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#3 2012-05-31 09:18:32

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Possible execuatble file to test forum scratch blocks?

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).

Last edited by Hardmath123 (2012-05-31 09:20:38)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#4 2012-06-01 00:05:22

daniel_j
Scratcher
Registered: 2012-05-22
Posts: 100+

Re: Possible execuatble file to test forum scratch blocks?

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!


http://i50.tinypic.com/2dhgnsx.jpg

Offline

 

#5 2012-06-01 02:26:38

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: Possible execuatble file to test forum scratch blocks?

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.


Why are the secret organizations getting all the attention?  mad

Offline

 

#6 2012-06-01 05:52:23

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: Possible execuatble file to test forum scratch blocks?

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.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#7 2012-09-13 13:25:02

tate88
Scratcher
Registered: 2012-05-02
Posts: 30

Re: Possible execuatble file to test forum scratch blocks?

when gf clicked
reset timer
wait (pick random [1] to [10]) secs
say (round (timer))

Last edited by tate88 (2012-09-13 13:26:49)

Offline

 
  • Index
  •  » Requests
  •  » Possible execuatble file to test forum scratch blocks?

Board footer