Take any file. (A long one, preferably, and that is .doc, .exe, .xls, .ppt, or any image or sound file). Change the extenaion to .html. Now double-click it: A whole bunch of random stuff will show in your browser. Hit CTRL+A, then CTRL+C, and it is copied, ready for pasting. Now you can change the extension of that file back to what it was.
The one described is a 1.3 only bug. The 1.4 one I've found is to make a 1 pixel costume, and set the size to 10,000. Then, switch it to a big costume.
in general, I guess I am mostly thinking of making it sort of like Javascript, except for easier, sort of like having lots of different properties, and stuff, but in Javascript, it isn't designed to be like "When Flag clicked:{ forever { }", like for creating an actual program. I haven't programmed in Java yet, though... I want to try that out...
and for color vars... {set [color1^] to red:(0) green:(50) blue:(80)} {set [color1^] to color:(50) brightness:(40) greyness:(20)} and stuff like that... ([red^] of [color1^]) <touching color (color1)> etc. that would be cool.
you are going to add a stretch effect, right? and a "greyness effect" and "pen greynes" (aka opposite of saturation)... also I think most of the things in Jens' BYOB are good but I want more blocks in the image effects category... including color variables {set [color1^] to grab x:(0) y:(0) of [screen^]}
I don't know what i did... i try to open another scratch window and a menu says
"squeak cannot locate the changes file named scratch.changes. please check that the file is named properly and is in the same directory as the image."
and the window is black. Help! i am pretty much lost about the whole source code/hacking thing...
Try this: Left-click on the scratch icon (the one that opens scratch), and click on properties. Then, in 'target' Paste this in ""C:\Program Files\Scratch\Scratch.exe" "Bureau:\Rowan\scratch.image". If all else fails, Try downloading scratch again.
oh come on! You copied my way to get into the source code! Or not... But I came up with that idea first :(. I have a project that was shared 8 months ago with that idea.
This only works with scratchplugin.dll... Do you have this? Also, will it open a website? And finally, which version of windows are you runnning? I should be able to determine the problem given the above.
uuuummmm...
THEY ALLREADY HAVE THE SCRIPT FO POINT TOWARDS X Y!!!!!
WHY HAVENT THEY DONE IT ALLREADY?!?!?!
P.S. the script is in "PointToXy" I think...
P.s. We must live in different time zones, because I was in school/sleeping when both comments were left! (and I am NOT a morning person, so I don't check comments in the morning).
I have been thinking about that block... Personally I think it is rather redundant, but here's what I'll do: Sometime down the road (like, the release of v0.2 or 0.3) I will add it to the unary function block. so as you would use ([negation] of (###)).
Do you mean 0 minus a number? If that is what you mean, than the function of a block to do this would be, in the class side: ('- %n' #r #zeroMinus:). The function would look like: <1st line> zeroMinus: t1 <2nd line> ^ t1 negated. <end> This tells scratch to report the negation of the number. However, I find ((0)-(###)) to work just fine for my purposes.
STREAK IS OUT!!!!! It is at http://streak.t35.com/
Please note that when it comes out in v(1.3.1)0.2, this block will be called 'run externally.'
Follow the steps in this project to make a block to open a browser with a specified url in it. You can now hyperlink in scratch!
AWESOME NEW DISCOVERY: You can type the path of a program into this block, and it will run that program. Or, type a folder path, and that folder will open in explorer. If anyone uses a mac, I'd appreciate them to test these. There may be a bit of extra code I need to add to make it work on a mac.
Comments
You need to be logged in to post comments
Add a Comment
you wont go to jail.
I don't plan to.
how do i set the size to 10,000?
using the set size to () block
wats an extenaion? is it that thing like a url at the top?
It is the part that follows the dot in a filename; and it defines the type. Ie: word files end in .doc, scratch files end in .sb
what do you mean by "open the browser with URL []] in it." how do I do that
you type a URL into the box, and the block will, well, open a browser onto that webpage.
were do you get lots of text?
Take any file. (A long one, preferably, and that is .doc, .exe, .xls, .ppt, or any image or sound file). Change the extenaion to .html. Now double-click it: A whole bunch of random stuff will show in your browser. Hit CTRL+A, then CTRL+C, and it is copied, ready for pasting. Now you can change the extension of that file back to what it was.
(view all replies)Its not working. I took a move block out, typed random things and crazy things, and "the red box" did not come up. im using 1.4 . why isnt it working?
The one described is a 1.3 only bug. The 1.4 one I've found is to make a 1 pixel costume, and set the size to 10,000. Then, switch it to a big costume.
(view all replies)would you go to jail for hacking for blocks?
No. Scratch is considered open source. As long as you give credit, but do not infringe copyright, you're fine.
So Tornatajo was true...
???
in general, I guess I am mostly thinking of making it sort of like Javascript, except for easier, sort of like having lots of different properties, and stuff, but in Javascript, it isn't designed to be like "When Flag clicked:{ forever { }", like for creating an actual program. I haven't programmed in Java yet, though... I want to try that out...
I'm trying Java Script too but I'm not very good at it because I'm used to C. Any suggestions?
(view all replies)Yes, I am getting many of my ideas from other programming languages, javascript as one. I am also working on a javascript player.
(view all replies)and for color vars... {set [color1^] to red:(0) green:(50) blue:(80)} {set [color1^] to color:(50) brightness:(40) greyness:(20)} and stuff like that... ([red^] of [color1^]) <touching color (color1)> etc. that would be cool.
you are going to add a stretch effect, right? and a "greyness effect" and "pen greynes" (aka opposite of saturation)... also I think most of the things in Jens' BYOB are good but I want more blocks in the image effects category... including color variables {set [color1^] to grab x:(0) y:(0) of [screen^]}
Yes, these are in high demand. I am working on a function tab (with scripts, costumes, and sounds) which will add BYOB type functionality.
I don't know what i did... i try to open another scratch window and a menu says "squeak cannot locate the changes file named scratch.changes. please check that the file is named properly and is in the same directory as the image." and the window is black. Help! i am pretty much lost about the whole source code/hacking thing...
Try this: Left-click on the scratch icon (the one that opens scratch), and click on properties. Then, in 'target' Paste this in ""C:\Program Files\Scratch\Scratch.exe" "Bureau:\Rowan\scratch.image". If all else fails, Try downloading scratch again.
Is it possible for a <sound [] is heard>? It would be cool!
Very possible. I don't quite see how it would be very useful, though. I'll make it if anyone else thinks I should!
(view all replies)Maybe you should work for scratch, and help them make better versions of scratch!
Well that is something I would like to do... However, they seem not to be looking for new members right now.
Very cool stuff! Amazing!
Hey! you should make a <If [] spoken> which senses if you say a certain word through you microphone!
That would be cool... however, because of how it will have to work, it may slow streak down. I will look into it.
You would need a voice recognizer though...
(view all replies)oh... And I'm pretty sure this method doesn't work for 1.4...
I can't say I've tested it, but it should... I will test it now.
(view all replies)But cool new block :)
oh come on! You copied my way to get into the source code! Or not... But I came up with that idea first :(. I have a project that was shared 8 months ago with that idea.
Actually, I got it from Jens' project... But great minds think alike, I guess!
(view all replies)I can't get it to run a program, and I don't use a mac.
This only works with scratchplugin.dll... Do you have this? Also, will it open a website? And finally, which version of windows are you runnning? I should be able to determine the problem given the above.
(view all replies)And is this done in Streak, or scratch?
This feature is included in Streak 0.2, which is not out yet. You can follow the steps to add it to streak 0.1, or to any version of scratch.
Um,could you make a tutorial for scratch 1.4?
It is exactly the same process... except that you need to find a new way to get the red walkback box.
I put quite some stuff in the first section, but then, it froze, and CLOSED itself!!
Was it exactly what was shown in the project? Even if it wasn't, that shouldn't happen... But I'll need to know more to try and help you.
Does it make a new window with the URL, or does it make a new tab?
It depends on your browser. With Google chrome, it makes a new window if there are none open already, and a new tab otherwise.
(view all replies)Does this work in Scratch 1.4?
Yes. Of course, you will have to do it separately again to the 1.4 image, but that's no real problem.
C'mon, c'mon, please don't hack.
The team released the open-source version for that purpose- so as others could make their ow scratch n versions, too!
(view all replies)I can't figure out ow to get the URL block
to save, you right click on the text in the browser (you will see a red box around it) and click 'accept.'
(view all replies)What do you mean by 'to get'? If you put the class definition where it was in the tutorial, it will be at the bottom of sensing.
(view all replies)I don't get it...
What part stumps you?
(view all replies)I made it! but ... how to save?
click the gray background, then on 'save.'
If Xaviaz gets enought love-its, he will make the game, so love-it! (link to project)
He's not intrested
here's an idea, sure positive () and sure negative ()!
I've decided to incorporate the negation function into the unary function block of Streak v(1.3)0.2. Thanks for the idea.
uuuummmm... THEY ALLREADY HAVE THE SCRIPT FO POINT TOWARDS X Y!!!!! WHY HAVENT THEY DONE IT ALLREADY?!?!?! P.S. the script is in "PointToXy" I think...
Ps. it is pointToX:y:
(view all replies)yes, I know. That is why it is so easy to just make a block to access this function!
Thanks! I'll try it out (on a mac).
Any news?
hey! I've been waiting 6 and a half hours, whers my reply?
P.s. We must live in different time zones, because I was in school/sleeping when both comments were left! (and I am NOT a morning person, so I don't check comments in the morning).
(view all replies)It is right below.
In a comment, could you show the function of a block that does 0-'number'?
I have been thinking about that block... Personally I think it is rather redundant, but here's what I'll do: Sometime down the road (like, the release of v0.2 or 0.3) I will add it to the unary function block. so as you would use ([negation] of (###)).
(view all replies)You can also use ((###)*(-1)).
(view all replies)Do you mean 0 minus a number? If that is what you mean, than the function of a block to do this would be, in the class side: ('- %n' #r #zeroMinus:). The function would look like: <1st line> zeroMinus: t1 <2nd line> ^ t1 negated. <end> This tells scratch to report the negation of the number. However, I find ((0)-(###)) to work just fine for my purposes.
(view all replies)thanks you are AWESOME!!! I hope the programming language comes soon!
It did... yesterday was the official launch day of v(1.3.1)0.1.
(view all replies)