This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-08-11 22:19:06

twphision
New Scratcher
Registered: 2010-08-11
Posts: 2

How to creat a new extra link in scratch ?

How to creat a new extra link in scratch such as USB link, call an other file or all another icon? Can it possible write my own souce code in this?

Offline

 

#2 2010-08-12 08:06:24

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: How to creat a new extra link in scratch ?

if you know some squeak that should be easy fr you. open the browser (using the scratch wiki's shift-click-r method) and go to
Scratch-UI-Dialogs -> ScratchFileChooserDialog -> initialization -> addShortcutButtons.
there you can add an extra bit.

shortcutColumn addMorphBack: t1 fullCopy.
    shortcutColumn addMorphBack: (self
            shortcutButtonLabel: 'My Device'
            action: #myDevice
            icon: #folderIcon).

add that somewhere in the code.
then right-click and click accept.
now select the whole code and replace it with

myDevice
    list currentDirectory: (FileDirectory default directoryNamed: 'd:\')

that maes you go to the path d:\
you can change that to whatever you prefer.

Offline

 

#3 2010-08-12 08:07:24

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: How to creat a new extra link in scratch ?

oh by the way, i think this belongs in advanced topics  smile

Offline

 

#4 2010-08-12 08:53:51

Bobsmth16
Scratcher
Registered: 2010-04-03
Posts: 8

Re: How to creat a new extra link in scratch ?

I think i have been hacked under my bobsmth26 username. I DID NOT CREATE WERE GOING FISHING!!!!!!!!!

Offline

 

#5 2010-08-12 09:10:58

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: How to creat a new extra link in scratch ?

I'll move this to Advanced Topics for you  wink

Bobsmth16 wrote:

I think i have been hacked under my bobsmth26 username. I DID NOT CREATE WERE GOING FISHING!!!!!!!!!

You could try contacting the Scratch Team about it, if any harm has been done (eg - if the password got changed, and you can't log in) - simply click on the "Contact us" link at the bottom of every page  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#6 2010-08-12 09:19:42

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: How to creat a new extra link in scratch ?

what does this actually do?


You can now reach me on Twitter @johnnydean1_

Offline

 

#7 2010-08-12 09:23:15

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: How to creat a new extra link in scratch ?

it adds shortcut buttons to the file chooser like this:
http://i34.tinypic.com/2vagi6h.jpgclick for larger image

Last edited by LS97 (2010-08-12 09:27:43)

Offline

 

#8 2010-08-13 04:51:35

twphision
New Scratcher
Registered: 2010-08-11
Posts: 2

Re: How to creat a new extra link in scratch ?

LS97 wrote:

if you know some squeak that should be easy fr you. open the browser (using the scratch wiki's shift-click-r method) and go to
Scratch-UI-Dialogs -> ScratchFileChooserDialog -> initialization -> addShortcutButtons.
there you can add an extra bit.

shortcutColumn addMorphBack: t1 fullCopy.
    shortcutColumn addMorphBack: (self
            shortcutButtonLabel: 'My Device'
            action: #myDevice
            icon: #folderIcon).

add that somewhere in the code.
then right-click and click accept.
now select the whole code and replace it with

myDevice
    list currentDirectory: (FileDirectory default directoryNamed: 'd:\')

that maes you go to the path d:\
you can change that to whatever you prefer.

Would you explain me what is about script code? How to write the code for myself?

Offline

 

#9 2010-08-13 05:25:24

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Offline

 

#10 2010-08-13 05:28:05

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: How to creat a new extra link in scratch ?

I dont know if you know but the thread's name is mis-spelt
How to creat a new extra link in scratch ?
How to create a new extra link in scratch ?


You can now reach me on Twitter @johnnydean1_

Offline

 

#11 2010-08-13 05:40:19

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: How to creat a new extra link in scratch ?

johnnydean1 wrote:

I dont know if you know but the thread's name is mis-spelt
How to creat a new extra link in scratch ?
How to create a new extra link in scratch ?

who cares??

Offline

 

Board footer