So I was messing around one day, and playing with the alt+f4 feature that exits a program. So I was running a scratch program in presentation mode with fill screen off, and I pressed at+f4. it then asked me if i wanted to save the image file and I clicked yes. So, when I started scratch, it opened up into that project in presentation mode! I knew I had just figured out a way past the .sb to .exe or .app barrier. My new compiling mod is almost done, I just need a little bit of help.
Could someone teach me how to mess with the source code to make it so pressing 'esc' in presentation mode will close scratch instead of exiting pres mode, and tell me how to make the curly arrow that exits pres mode exit scratch instead? thank you.
Last edited by midnightleopard (2010-07-12 21:38:59)
Offline
Ok first look through the mods and find a:
close (mod name e.g Scratch) block
Youve now done the easy bit!
Now somewhere in the source (Maybe Scratch-UI something) there is the code for the arrow. Replace it with the code from the mod and when you click the arrow you should quit Scratch.
Offline
Very clever...
Offline
johnnydean1 wrote:
Ok first look through the mods and find a:
close (mod name e.g Scratch) block
Youve now done the easy bit!
Now somewhere in the source (Maybe Scratch-UI something) there is the code for the arrow. Replace it with the code from the mod and when you click the arrow you should quit Scratch.
not so much a mod, I haven't changed anything in scratch, just added a new menu.
Offline
okay.. I got the method, but now I need a method that quits scratch.
Last edited by midnightleopard (2010-07-13 08:43:17)
Offline
well yes look through other mods and find a [quite |Mod name|] block. Get the code and use it when the arrows pressed.
Offline
Turn fill screen off or enable programmer facilities, then go into presentation mode and right click on the return arrow twice. Click on the red button to bring up a menu, then click "change action selector". Change "exitPresentation" to "quitScratch", then accept.
Writing this from memory, so fool around if it doesn't work.
Last edited by bigreader (2010-07-13 12:42:30)
Offline
bigreader wrote:
Turn fill screen off or enable programmer facilities, then go into presentation mode and right click on the return arrow twice. Click on the red button to bring up a menu, then click "change action selector". Change "exitPresentation" to "quitScratch", then accept.
Writing this from memory, so fool around if it doesn't work.![]()
quitScratch is not a method.
Offline
midnightleopard wrote:
bigreader wrote:
Turn fill screen off or enable programmer facilities, then go into presentation mode and right click on the return arrow twice. Click on the red button to bring up a menu, then click "change action selector". Change "exitPresentation" to "quitScratch", then accept.
Writing this from memory, so fool around if it doesn't work.![]()
quitScratch is not a method.
It worked for me whenI was playing around before.
Offline
I tried inspecting the morph, changing it's action selector to 'quitScratch' and I got an error. What else should I do?
and btw, I read somewhere that you where making a compiler for panther, perhaps you could use an idea like mine. (exporting the project in presentation mode as an image file, then bundling it with a vm and all necessary plugins, then making the 'esc' key and the arrow button quit the program.
Last edited by midnightleopard (2010-07-13 19:55:28)
Offline
midnightleopard wrote:
I tried inspecting the morph, changing it's action selector to 'quitScratch' and I got an error. What else should I do?
and btw, I read somewhere that you where making a compiler for panther, perhaps you could use an idea like mine. (exporting the project in presentation mode as an image file, then bundling it with a vm and all necessary plugins, then making the 'esc' key and the arrow button quit the program.
No thanks, I'm tryng to mod Jens' Scratch2exe, having a bit of trouble, but i'll work it out eventualy.
Offline