Page 1 of 1
Script-Exchangement-Place
Posted: 10 Feb 2008 16:52
by fishgod
This discussion board is named "XYplorer Beta Club" but maybe we can use it in a more general-purpose-way.
What do you think about a XYScript-Exchangement-Section in this board where users can share their scripts?
What do all the other folks in here think about that idea, would you use it if we get something like this here?
Re: Script-Exchangement-Place
Posted: 10 Feb 2008 16:59
by admin
I like the idea.
But we should wait until "::" versus "; " is decided...

Re: Script-Exchangement-Place
Posted: 10 Feb 2008 18:02
by j_c_hallgren
fishgod wrote:What do all the other folks in here think about that idea, would you use it if we get something like this here?
Yes, I agree with you and Don! Having a separate sub-forum just for scripts would likely be a good solution to sharing/exchanging scripts.
Posted: 10 Feb 2008 22:37
by PeterH
I think the idea of showing some scripts is very good, I think. Everyone has his own style and ideas. So it may be good to use some interesting script you find - but I'm even more interested in the ideas others use to program scripts!
(Did I say 'to program'?)

Posted: 14 Feb 2008 17:33
by admin
This is a script by jacky from the XYwiki. I'm pleased to report that you can select, copy and paste this from here into the "::write" box and it will be parsed correctly. Well,
almost!

The result is
goto C:\ Internet\ Downloads\ -- 2 spaces too much! This means sharing scripts via this forum might be difficult...
Indents are done with tabs:
Code: Select all
// This is the menu caption:
"Go to...
// this line will be ignored
// and here continues the menu caption:
my downloads folder"
// this would be fine :
//goto C:\Internet\Downloads\
// but we could also do this instead
// !! Make sure to use tabs and have a space after goto
goto
// !! Or one right before C:\ -- or else XY will fail on invalid script command: "gotoC:\Internet\Downloads\"
C:\
Internet\
// this line is commented, and will be ignored completely
Downloads\
// so, without blank & commented lines, the parameter to the goto command will be "C:\Internet\Downloads\"
This is the same script but indented with spaces instead of tabs. Same story:
Code: Select all
// This is the menu caption:
"Go to...
// this line will be ignored
// and here continues the menu caption:
my downloads folder"
// this would be fine :
//goto C:\Internet\Downloads\
// but we could also do this instead
// !! Make sure to use tabs and have a space after goto
goto
// !! Or one right before C:\ -- or else XY will fail on invalid script command: "gotoC:\Internet\Downloads\"
C:\
Internet\
// this line is commented, and will be ignored completely
Downloads\
// so, without blank & commented lines, the parameter to the goto command will be "C:\Internet\Downloads\"