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

#26 2011-09-02 16:44:03

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

Re: Windows Question

JSO wrote:

LS97 wrote:

Daffy22 wrote:

If if I understand correctly then you can some how add .ght to the registry and it will understand it as a .ght file just like .txt .  big_smile
I think your best bet is to google it!  wink

objection -- best bet is me. i'm an expert with registry values now  big_smile

so. to start the tut.
open the registry
make a new key called .ght or whatever in HKEY-CLASSES or something.
set that key GhostProject or whatever  tongue
make a new key in the same place called GhostProject (or whatever)
set that to Ghost Project (or whatever you want the name to be)
add a key inside that called shell and anothr called defaultIcon
set defaultIcon to the pth of an ico file and add ,0 after it.
set shell to open
make a new key inside shell called open
set that to Open File
make a new key inside open called command
set that to the path of the exe, the path of the image AND "%1"
it definitely works

:S You could also just right click a .ght project, click 'Open with...', 'Select program...', (find your Ghost exe), check the box to remember it, click ok  tongue

Although it might act weird because the squeak VM also needs its image file...

I was showing the real way to do it  wink
tongue
Mine can actually then be exported to a REG patch and later merged into any computer! Besides the open with thingy does exactly the same but with a GUI.

Offline

 

Board footer