Undocumented script commands - Suggestions
Re: Undocumented script commands - Suggestions
Can't believe no one's discovered ^this^ already by echoing bad strings, as I did.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Posts: 1416
- Joined: 04 Nov 2008 05:35
- Location: Hanoi, Vietnam
Re: Undocumented script commands - Suggestions
Feel like you're reverse-enginerring XY!!!
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488
Re: Undocumented script commands - Suggestions
by mistake!
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Undocumented script commands - Suggestions
enumshellfolderitems
Shows contents of special file-system locations.
Syntax
Example
Remarks
Not all CSIDLs will return existing subfolders. For example, 16 and 0 both point to Desktop but 0 returns empty list.
propindex is the same property index as used in SC property(), but without the '#' prefix.
Invalid propindex defaults to 0 (Name).
History
Shows contents of special file-system locations.
Syntax
Code: Select all
enumshellfolderitems [CLSIDL=-1], [propindex],[showpath=0]
CSIDL a numerical constant predefined by the OS pointing to special locations.
propindex include a particular property of subfolders in the listing.
showpath include full path of subfolders in the listing. 1 = yes, 0 = no.
Code: Select all
enumshellfolderitems 16, 4; //list Desktop subfolders with created date.
Not all CSIDLs will return existing subfolders. For example, 16 and 0 both point to Desktop but 0 returns empty list.
propindex is the same property index as used in SC property(), but without the '#' prefix.
Invalid propindex defaults to 0 (Name).
History
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
- Site Admin
- Posts: 60598
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Undocumented script commands - Suggestions
Just a warning note: I can theoretically modify or remove undocumented script commands at any time without notice. So I'm not sure if this thread is a good idea... ... at least it should be accompanied with lots of warning signs...
FAQ | XY News RSS | XY Twitter
Re: Undocumented script commands - Suggestions
yep. common knowledge, I believe.
Still I separated some such commands in a separate list in the sticky. Most traffic here comes from that thread now, I think.
Still I separated some such commands in a separate list in the sticky. Most traffic here comes from that thread now, I think.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Undocumented script commands - Suggestions
I hope there is a difference?admin wrote:Just a warning note: I can theoretically modify or remove undocumented script commands at any time without notice. So I'm not sure if this thread is a good idea... ... at least it should be accompanied with lots of warning signs...
Fully understand this for commands that were not intended to be known.
But, e.g., somewhen I asked for Caller(), you created it like Self(), but said, you wouldn't document it. I would be very sad if somewhen you would remove it.
So I'd say: the situation would be much clearer it you would document those that make sense.
By the way: I love the extended functions of echo
Win11 Pro 223H2 Gerrman
Re: Undocumented script commands - Suggestions
shellcopy
copies files or folders using the shell.
Syntax
Example
Remarks
* The target must exist beforehand. Name collision behavior is shell-controlled.
* See reference to SC shellopen for path spec.
copies files or folders using the shell.
Syntax
Code: Select all
shellcopy source, target
source |-separated list of items
target location where the items will be copied
Code: Select all
::shellcopy <curitem>, "<xydata>";
::shellcopy <curitem>, "shell:Desktop";
* The target must exist beforehand. Name collision behavior is shell-controlled.
* See reference to SC shellopen for path spec.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Undocumented script commands - Suggestions
shellmove
moves files or folders using the shell.
Syntax
Example
Remarks
* The target must exist beforehand. Name collision behavior is shell-controlled.
* See reference to SC shellopen for path spec.
moves files or folders using the shell.
Syntax
Code: Select all
shellmove source, target
source |-separated list of items
target location where the items will be moved
Code: Select all
::shellmove <get 'selecteditemspathnames' '|'>, "%desktopreal%";
::shellmove <curitem>, "shell:Desktop"
* The target must exist beforehand. Name collision behavior is shell-controlled.
* See reference to SC shellopen for path spec.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Undocumented script commands - Suggestions
I did not try this nor do I fully understand it (cannot give a full discription), however, I noticed that it is missing from here so far:
http://www.xyplorer.com/xyfc/viewtopic. ... 22#p122144
::dlbtn([Url]);
assuming it is called "Download Button"
http://www.xyplorer.com/xyfc/viewtopic. ... 22#p122144
::dlbtn([Url]);
assuming it is called "Download Button"
[AHK] redirecting Windows Explorer to XY, [XYS] Mini Tree with open tabs (cur loc expanded, tab folders highlighted), [AHK] customInlineRenameKeys, [AHK] clipboardHelper_and_XYEscToList
Re: Undocumented script commands - Suggestions
eh, that's not actually implemented yet... edit, here it is >> viewtopic.php?t=13822&p=135293#p135293 !
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Undocumented script commands - Suggestions
echoraw
shows how XYplorer interprets the raw string that was passed upto the end of the statement.
Syntax
Example
shows how XYplorer interprets the raw string that was passed upto the end of the statement.
Syntax
Code: Select all
echoraw text
text the text to display
Code: Select all
echoraw 'Hi!'; //returns 'Hi!' with the quotes
echoraw <<<>>
"heredoc text."
>>;
$a = 42; echoraw "the value is: $a";
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
Re: Undocumented script commands - Suggestions
error
Generates and catches a specific error.
Syntax
Example
History
Generates and catches a specific error.
Syntax
Code: Select all
error [errnumber=1];
errnumber Number of error. Defaults to 1 an 'Application-defined or object-defined error'.
Code: Select all
error 11; // Division by Zero
- v16.10.0306 - 2016-01-12 21:46
Code: Select all
* Scripting: Slight change in the syntax of the recent newcomers: Syntax: error [errnumber=1]; Syntax: crash [errnumber=1];
- v16.10.0305 - 2016-01-12 17:20 - "Official" Introduction
Code: Select all
v16.10.0305 - 2016-01-12 17:20 + Scripting: Added two undercover commands that will not appear in the official help but could be useful for debugging and other pastimes. - Name: Error Action: Generates and catches a specific error. Syntax: error errnumber; Example: error 11; //Division by Zero
- Note: This existed previously.
Re: Undocumented script commands - Suggestions
crash
Generates a specific error and crashes on it.
Syntax
Example
History
Generates a specific error and crashes on it.
Syntax
Code: Select all
crash [errnumber=1];
errnumber Number of error. Defaults to 1 a 'Run-time error 97: Can not call friend function on object...'
Code: Select all
crash 11; // Division by Zero
- v16.10.0306 - 2016-01-12 21:46
Code: Select all
* Scripting: Slight change in the syntax of the recent newcomers: Syntax: error [errnumber=1]; Syntax: crash [errnumber=1];
- v16.10.0305 - 2016-01-12 17:20 - Introduction
Code: Select all
v16.10.0305 - 2016-01-12 17:20 + Scripting: Added two undercover commands that will not appear in the official help but could be useful for debugging and other pastimes. . . . - Name: Crash Action: Generates a specific error and crashes on it. Syntax: crash errnumber; Example: crash 11; //Division by Zero
Re: Undocumented script commands - Suggestions
Sammay added both new commands to the overview thread
One of my scripts helped you out? Please donate via Paypal