johnnydean1 wrote:
sparks wrote:
... Please delete that post. If anyone quotes it I will scream.
I have reported it.
I didn't see it. What was it? Was it worth asking? Or was it inappropriate and shouldn't be brought up.
Offline
Pecola1 wrote:
ProgrammingFreak wrote:
Move () Steps [ ]
By ProgrammingFreak
This block redoes the 'Move () Steps' block.I believe z is already used in the block library you can use Z.
Well, anything that works for you. I'll do Z
Offline
scimonster, are you going to try registering on my website again? I took down the spam blocker that was most likely to give false positives.
Offline
New Block!
Goto Url
By ProgrammingFreak
Code:
gotourl: t1 | url | url _ 'http://', t1. Cursor wait showWhile: [ScratchPlugin primOpenURL: url]
BlockSpec:
('goto url %s' #- #gotourl:)Offline
sparks wrote:
A New Scratcher called Windows Explorer quoted every single one of the main library posts in one long post. Paddle2See put it all in a code or quote box though
![]()
Oh, okay, I saw that, just it is still spam isn't it? I guess its fine left there, if it was deleted wouldn't it delete the topic?
Offline
scratcher7_13 wrote:
Can I become a part-time block librarian as a block tester? Or is that someones job already? Thanks!
I have already tested a few blocks.
I bump this post!
Offline
scratcher7_13 wrote:
scratcher7_13 wrote:
Can I become a part-time block librarian as a block tester? Or is that someones job already? Thanks!
I have already tested a few blocks.I bump this post!
Don't bump unless it is on the second page, and rather than bumping, think of something you could say.
Offline
Pecola1 wrote:
scratcher7_13 wrote:
scratcher7_13 wrote:
Can I become a part-time block librarian as a block tester? Or is that someones job already? Thanks!
I have already tested a few blocks.I bump this post!
Don't bump unless it is on the second page, and rather than bumping, think of something you could say.
I mean that I am looking for someone to reply to this post.
Offline
ProgrammingFreak wrote:
New Block!
Goto Url
By ProgrammingFreak
Code:Code:
gotourl: t1 | url | url _ 'http://', t1. Cursor wait showWhile: [ScratchPlugin primOpenURL: url]BlockSpec:
Code:
('goto url %s' #- #gotourl:)
Won't work if you input http://{address}, which most people do (because they copy the url from the address bar). I'll optimize it:
gotourl: t1 httpIncluded: t2
| url |
url _ t1.
t2 = true ifFalse: [url _ 'http://' , t1].
Cursor wait showWhile: [ScratchPlugin primOpenURL: url]('Go to url %s . Http prefix included? %b' #- #gotourl:httpIncluded: 'scratch.mit.edu')•••••••••••••••••••••••••••••••••••••••
Hardmath123 wrote:
Blockspec:
Code:
('Set the list blocks color to %c' #- #setListBlockColorSelf:)Code:
Code:
setListBlockColorSelf: t1 ListBlockColor _ t1
Anybody?
•••••••••••••••••••••••••••••••••••••••
openForum: url
Cursor wait showWhile: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?id=' , url asString]('Open the %n th forum page' #- #openForum: 58790)Default value is the block library.
•••••••••••••••••••••••••••••••••••••
('Post on the %nth forum topic' #- #postForum: 58790)postForum: t1
Cursor wait showWhile: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/post.php?tid=' , t1 asString]Last edited by Hardmath123 (2011-04-30 13:15:47)
Offline
I want a block that can store data online and retrieve it when a user enters a password.
Offline
Hardmath123 wrote:
ProgrammingFreak wrote:
New Block!
Goto Url
By ProgrammingFreak
Code:Code:
gotourl: t1 | url | url _ 'http://', t1. Cursor wait showWhile: [ScratchPlugin primOpenURL: url]BlockSpec:
Code:
('goto url %s' #- #gotourl:)Won't work if you input http://{address}, which most people do (because they copy the url from the address bar). I'll optimize it:
Code:
gotourl: t1 httpIncluded: t2 | url | url _ t1. t2 = true ifFalse: [url _ 'http://' , t1]. Cursor wait showWhile: [ScratchPlugin primOpenURL: url]Code:
('Go to url %s . Http prefix included? %b' #- #gotourl:httpIncluded: 'scratch.mit.edu')•••••••••••••••••••••••••••••••••••••••
Hardmath123 wrote:
Blockspec:
Code:
('Set the list blocks color to %c' #- #setListBlockColorSelf:)Code:
Code:
setListBlockColorSelf: t1 ListBlockColor _ t1Anybody?
•••••••••••••••••••••••••••••••••••••••Code:
openForum: url Cursor wait showWhile: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/viewtopic.php?id=' , url asString]Code:
('Open the %n th forum page' #- #openForum: 58790)Default value is the block library.
•••••••••••••••••••••••••••••••••••••Code:
('Post on the %nth forum topic' #- #postForum: 58790)Code:
postForum: t1 Cursor wait showWhile: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/forums/post.php?tid=' , t1 asString]
I really like those, Hardmath!
WYB I didn't need you to tell me the default value for the [open the ()th forum page]?
I think I've been spending too much time here.
Offline
scratcher7_13 wrote:
scratcher7_13 wrote:
Can I become a part-time block librarian as a block tester? Or is that someones job already? Thanks!
I have already tested a few blocks.I bump this post!
I did reply to this. I said that We have all the librarians we need, they're just there to edit posts, but you are welcome to continue working on the library in other ways, such as testing blocks, that's what all the currently librarians did and still do before they were appointed!
Offline
Okay, thanks!
Offline
It worked MM55.
I'm Scimonster.
Offline
YourLocalBlockLib wrote:
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.png
^Back to Scratch blocks
How to download a Scratch block
Credit to nXIII for his patcher, which this code was based on
This is a way how you can make an "import block" item in the file menu so you can download and import blocks from the library.
Beware: this feature is untested! If you want to test it for us, great, but don't use this in your production environment yet!
The Importer
Installing the block importer is the hardest (but not very hard) thing you must do in order to import blocks. Simply follow these instructions:
Step 1: Open Scratch
Step 2: Press and hold the "shift" key while clicking the loop of the "R" in the Scratch logo
Step 3: Select "turn fill-screen off" from the popup menu which shows up
Not showing up? Make sure you're clicking inside the loop of the "R"; the "logo" referred to is the one that says "Scratch" in the top-left corner.
Step 4: Click anywhere in the "white space" which shows up at the bottom and right sides of the window
Step 5: Select "open..." from the popup menu
Step 6: Select "workspace" from the subsequent popup menu
Step 7: Copy the following text and paste it into the textbox-like window with (Windows) Alt+V or (Mac) Command+V, or by clicking the "-" button above the scrollbar (appears when the mouse is over the "workspace" window) and selecting "paste (v)"Code:
'From MIT Squeak 0.9.4 (June 1, 2003) [No updates present.] on 18 June 2010 at 5:06:17 pm'! !ScratchFileChooserDialog methodsFor: 'initialization'! createBlockFileChooserFor: t1 scratchFrame _ nil. readingScratchFile _ true. list _ ScratchFilePicker new extensions: #(#block ). self removeAllMorphs. bottomSpacer delete. bottomSpacer _ nil. mainColumn addMorphBack: list. self title: 'Import Block'. list scratchInfoClient: nil. mainColumn addMorphBack: (Morph new extent: 5 @ 9; color: Color transparent); addMorphBack: newTitleBin. fileInfoColumn addMorphBack: buttonRow. self addMorphBack: shortcutColumn; addMorphBack: mainColumn; addMorphBack: fileInfoColumn! ! !ScratchFrameMorph methodsFor: 'menu/button actions'! addBlock | t1 t2 t3 t4 | t1 _ ScratchFileChooserDialog new createBlockFileChooserFor: self; type: #block. t2 _ t1 getUserResponse. t2 = #cancelled ifTrue: [^ self]. t3 _ (FileDirectory forFileName: t2) oldFileNamed: t2. t4 _ t3 contentsOfEntireFile. (ReadWriteStream on: t4 from: 1 to: t4 size) fileIn! ! !ScratchFrameMorph methodsFor: 'menu/button actions'! fileMenu: t1 | t2 | t2 _ CustomMenu new. t2 add: 'New' action: #newScratchProject. t2 add: 'Open' action: #openScratchProject. t2 add: 'Save' action: #saveScratchProjectNoDialog. t2 add: 'Save As' action: #saveScratchProject. t2 addLine. t2 add: 'Import Project' action: #importScratchProject. t2 add: 'Export Sprite' action: #exportSprite. t2 addLine. t2 add: 'Import Block' action: #addBlock. t2 addLine. t2 add: 'Project Notes' action: #editNotes. Sensor shiftPressed ifTrue: [t2 addLine. t2 add: 'Write Project Summary' action: #writeSummaryFile. t2 add: 'Write Multiple Project Summaries' action: #writeMultipleSummaries]. t2 addLine. t2 add: 'Quit' action: #quitScratch. t2 localize. #(2 4 5 6 7 8 ) do: [:t3 | t2 labels at: t3 put: ((t2 labels at: t3) copyFrom: 1 to: (t2 labels at: t3) size - 1) , ScratchTranslator ellipsesSuffix]. t2 invokeOn: self at: t1 bottomLeft + (0 @ 10)! !Step 8: Select all the text by click-and-drag or by pressing (Windows) Alt+A or (Mac) Command+A
Step 9: File in the selection by right-clicking (Mac option+click) the selection and clicking "more..." then "file it in"
Step 10: Shift-click the loop of the "R" in the Scratch logo again and select "save image for end-user" then select "yes" when prompted. Scratch should close, and when restarted you will see a new option in the file menu: "Import Block..."
http://dl.dropbox.com/u/6273449/BlockLibDiv2.png
^Back to Scratch blocks
It appears that this doesn't work...
Offline
777w wrote:
YourLocalBlockLib wrote:
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.png
^Back to Scratch blocks
How to download a Scratch block
Credit to nXIII for his patcher, which this code was based on
This is a way how you can make an "import block" item in the file menu so you can download and import blocks from the library.
Beware: this feature is untested! If you want to test it for us, great, but don't use this in your production environment yet!
The Importer
Installing the block importer is the hardest (but not very hard) thing you must do in order to import blocks. Simply follow these instructions:
Step 1: Open Scratch
Step 2: Press and hold the "shift" key while clicking the loop of the "R" in the Scratch logo
Step 3: Select "turn fill-screen off" from the popup menu which shows up
Not showing up? Make sure you're clicking inside the loop of the "R"; the "logo" referred to is the one that says "Scratch" in the top-left corner.
Step 4: Click anywhere in the "white space" which shows up at the bottom and right sides of the window
Step 5: Select "open..." from the popup menu
Step 6: Select "workspace" from the subsequent popup menu
Step 7: Copy the following text and paste it into the textbox-like window with (Windows) Alt+V or (Mac) Command+V, or by clicking the "-" button above the scrollbar (appears when the mouse is over the "workspace" window) and selecting "paste (v)"Code:
'From MIT Squeak 0.9.4 (June 1, 2003) [No updates present.] on 18 June 2010 at 5:06:17 pm'! !ScratchFileChooserDialog methodsFor: 'initialization'! createBlockFileChooserFor: t1 scratchFrame _ nil. readingScratchFile _ true. list _ ScratchFilePicker new extensions: #(#block ). self removeAllMorphs. bottomSpacer delete. bottomSpacer _ nil. mainColumn addMorphBack: list. self title: 'Import Block'. list scratchInfoClient: nil. mainColumn addMorphBack: (Morph new extent: 5 @ 9; color: Color transparent); addMorphBack: newTitleBin. fileInfoColumn addMorphBack: buttonRow. self addMorphBack: shortcutColumn; addMorphBack: mainColumn; addMorphBack: fileInfoColumn! ! !ScratchFrameMorph methodsFor: 'menu/button actions'! addBlock | t1 t2 t3 t4 | t1 _ ScratchFileChooserDialog new createBlockFileChooserFor: self; type: #block. t2 _ t1 getUserResponse. t2 = #cancelled ifTrue: [^ self]. t3 _ (FileDirectory forFileName: t2) oldFileNamed: t2. t4 _ t3 contentsOfEntireFile. (ReadWriteStream on: t4 from: 1 to: t4 size) fileIn! ! !ScratchFrameMorph methodsFor: 'menu/button actions'! fileMenu: t1 | t2 | t2 _ CustomMenu new. t2 add: 'New' action: #newScratchProject. t2 add: 'Open' action: #openScratchProject. t2 add: 'Save' action: #saveScratchProjectNoDialog. t2 add: 'Save As' action: #saveScratchProject. t2 addLine. t2 add: 'Import Project' action: #importScratchProject. t2 add: 'Export Sprite' action: #exportSprite. t2 addLine. t2 add: 'Import Block' action: #addBlock. t2 addLine. t2 add: 'Project Notes' action: #editNotes. Sensor shiftPressed ifTrue: [t2 addLine. t2 add: 'Write Project Summary' action: #writeSummaryFile. t2 add: 'Write Multiple Project Summaries' action: #writeMultipleSummaries]. t2 addLine. t2 add: 'Quit' action: #quitScratch. t2 localize. #(2 4 5 6 7 8 ) do: [:t3 | t2 labels at: t3 put: ((t2 labels at: t3) copyFrom: 1 to: (t2 labels at: t3) size - 1) , ScratchTranslator ellipsesSuffix]. t2 invokeOn: self at: t1 bottomLeft + (0 @ 10)! !Step 8: Select all the text by click-and-drag or by pressing (Windows) Alt+A or (Mac) Command+A
Step 9: File in the selection by right-clicking (Mac option+click) the selection and clicking "more..." then "file it in"
Step 10: Shift-click the loop of the "R" in the Scratch logo again and select "save image for end-user" then select "yes" when prompted. Scratch should close, and when restarted you will see a new option in the file menu: "Import Block..."
http://dl.dropbox.com/u/6273449/BlockLibDiv2.png
^Back to Scratch blocksIt appears that this doesn't work...
![]()
It works for me.
Offline
scratcher7_13 wrote:
777w wrote:
YourLocalBlockLib wrote:
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.png
^Back to Scratch blocks
How to download a Scratch block
Credit to nXIII for his patcher, which this code was based on
This is a way how you can make an "import block" item in the file menu so you can download and import blocks from the library.
Beware: this feature is untested! If you want to test it for us, great, but don't use this in your production environment yet!
The Importer
Installing the block importer is the hardest (but not very hard) thing you must do in order to import blocks. Simply follow these instructions:
Step 1: Open Scratch
Step 2: Press and hold the "shift" key while clicking the loop of the "R" in the Scratch logo
Step 3: Select "turn fill-screen off" from the popup menu which shows up
Not showing up? Make sure you're clicking inside the loop of the "R"; the "logo" referred to is the one that says "Scratch" in the top-left corner.
Step 4: Click anywhere in the "white space" which shows up at the bottom and right sides of the window
Step 5: Select "open..." from the popup menu
Step 6: Select "workspace" from the subsequent popup menu
Step 7: Copy the following text and paste it into the textbox-like window with (Windows) Alt+V or (Mac) Command+V, or by clicking the "-" button above the scrollbar (appears when the mouse is over the "workspace" window) and selecting "paste (v)"Code:
'From MIT Squeak 0.9.4 (June 1, 2003) [No updates present.] on 18 June 2010 at 5:06:17 pm'! !ScratchFileChooserDialog methodsFor: 'initialization'! createBlockFileChooserFor: t1 scratchFrame _ nil. readingScratchFile _ true. list _ ScratchFilePicker new extensions: #(#block ). self removeAllMorphs. bottomSpacer delete. bottomSpacer _ nil. mainColumn addMorphBack: list. self title: 'Import Block'. list scratchInfoClient: nil. mainColumn addMorphBack: (Morph new extent: 5 @ 9; color: Color transparent); addMorphBack: newTitleBin. fileInfoColumn addMorphBack: buttonRow. self addMorphBack: shortcutColumn; addMorphBack: mainColumn; addMorphBack: fileInfoColumn! ! !ScratchFrameMorph methodsFor: 'menu/button actions'! addBlock | t1 t2 t3 t4 | t1 _ ScratchFileChooserDialog new createBlockFileChooserFor: self; type: #block. t2 _ t1 getUserResponse. t2 = #cancelled ifTrue: [^ self]. t3 _ (FileDirectory forFileName: t2) oldFileNamed: t2. t4 _ t3 contentsOfEntireFile. (ReadWriteStream on: t4 from: 1 to: t4 size) fileIn! ! !ScratchFrameMorph methodsFor: 'menu/button actions'! fileMenu: t1 | t2 | t2 _ CustomMenu new. t2 add: 'New' action: #newScratchProject. t2 add: 'Open' action: #openScratchProject. t2 add: 'Save' action: #saveScratchProjectNoDialog. t2 add: 'Save As' action: #saveScratchProject. t2 addLine. t2 add: 'Import Project' action: #importScratchProject. t2 add: 'Export Sprite' action: #exportSprite. t2 addLine. t2 add: 'Import Block' action: #addBlock. t2 addLine. t2 add: 'Project Notes' action: #editNotes. Sensor shiftPressed ifTrue: [t2 addLine. t2 add: 'Write Project Summary' action: #writeSummaryFile. t2 add: 'Write Multiple Project Summaries' action: #writeMultipleSummaries]. t2 addLine. t2 add: 'Quit' action: #quitScratch. t2 localize. #(2 4 5 6 7 8 ) do: [:t3 | t2 labels at: t3 put: ((t2 labels at: t3) copyFrom: 1 to: (t2 labels at: t3) size - 1) , ScratchTranslator ellipsesSuffix]. t2 invokeOn: self at: t1 bottomLeft + (0 @ 10)! !Step 8: Select all the text by click-and-drag or by pressing (Windows) Alt+A or (Mac) Command+A
Step 9: File in the selection by right-clicking (Mac option+click) the selection and clicking "more..." then "file it in"
Step 10: Shift-click the loop of the "R" in the Scratch logo again and select "save image for end-user" then select "yes" when prompted. Scratch should close, and when restarted you will see a new option in the file menu: "Import Block..."
http://dl.dropbox.com/u/6273449/BlockLibDiv2.png
^Back to Scratch blocksIt appears that this doesn't work...
![]()
It works for me.
Hmm...how did you get it to work? I did all the steps...
Offline
777w wrote:
scratcher7_13 wrote:
777w wrote:
It appears that this doesn't work...![]()
It works for me.
Hmm...how did you get it to work? I did all the steps...
Maybe you need to re-enter the code.
Offline
scratcher7_13 wrote:
777w wrote:
scratcher7_13 wrote:
It works for me.Hmm...how did you get it to work? I did all the steps...
Maybe you need to re-enter the code.
I did, multiple times!
Offline
777w wrote:
scratcher7_13 wrote:
777w wrote:
Hmm...how did you get it to work? I did all the steps...Maybe you need to re-enter the code.
I did, multiple times!
I don't know what's wrong then.
Offline
sparks wrote:
What is this feature? I didn't know we had this?
![]()
OH! You missed it all! We were trying to make scratch blocks downloadable, I started but couldn't get the blockspec part to work.
I was hoping someone would start doing the rest for me, but no one was on. Look at it and see if you can help. I will 'bump' the posts that are needed to do it.
Offline
Offline
Pecola1 wrote:
sparks wrote:
Non-librarians are welcome to add help with the library by working on new ideas - librarians are just there to keep the library updated
![]()
What we need is an online program that can edit the contents of the Scratch smalltalk browser. The program would be able to give a user a list of blocks with checkbox options as to which blocks they want - then add the code for those blocks to the correct section of that copy of Scratch before providing a download link to it. No idea if that's possible. If a patches system is possible to easily use with normal Scratch that will be very cool, I've wanted to find a way to make Scratch blocks downloadable too for ages!YAY! BTW yall, I have been sick, so I just got a 2-3 hour nap. That felt good, I wonder if i can do my SAT tomorrow? I feel better. [/offTopicness] Let me tell you a problem we will run into and a way too solve it. By making a patch, you cannot simply add to a method, only overwrite it, so for the blockspec, we cannot do. UNLESS we make a dialog which would tell you, "This will over right any block you have made beside ones you download, is that okay?" How do we fix it, we simply make it so each block has its own blockspec, for example the say nothing would be:
sayNothingBlockspec
^( 'looks' ('say nothing' #- #sayNothing) )And we could simply have a beginning patch for you to download which would have at the end
^ t1 , self obsoleteBlockSpecs, sayNothingBlockspec, hideCursorBlockspec, etc.
This it will also make all the blockspecs, but they will all be blank, until you download that block.
BUMP!
Offline