Script-Exchangement-Place

Features wanted...
Post Reply
fishgod
Posts: 231
Joined: 03 Feb 2008 00:40
Location: Sankt Augustin (near Bonn), Germany

Script-Exchangement-Place

Post 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?
Operating System: Win10 x64 / Win11 x64 / almost allways newest XY-beta
totally XYscripting-addicted

admin
Site Admin
Posts: 65050
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Script-Exchangement-Place

Post by admin »

I like the idea.

But we should wait until "::" versus "; " is decided... :wink:

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Script-Exchangement-Place

Post 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.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Post 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'?) :wink:

admin
Site Admin
Posts: 65050
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post 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\"

Post Reply