The Goto-Shorthand Failure on Address Bar

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

The Goto-Shorthand Failure on Address Bar

Post by armsys »

The ::Desktop; script won't work on the Address Bar.
Please help.
Attachments
Short-hand Goto Failure
Short-hand Goto Failure
XY26.jpg (31.14 KiB) Viewed 835 times

PeterH
Posts: 2776
Joined: 21 Nov 2005 20:39
Location: Germany

Re: The Goto-Shorthand Failure on Address Bar

Post by PeterH »

Try
::load "Desktop"; :?:

("load" is a command, "Desktop" is not - so the error msg.)
(Assuming that Desktop *is* a script...)
W7(x64) SP1 German
( +WXP SP3 )

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: The Goto-Shorthand Failure on Address Bar

Post by armsys »

Hi PeterH,
PeterH wrote:::load "Desktop"; :?:
But the Bible states the support of shorthand requiring neither LOAD nor GOTO.
The Desktop in my last post is the Window Desktop you stare at daily, not an xys script file.
Attachments
Load not required
Load not required
XY27.jpg (118.32 KiB) Viewed 823 times

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: The Goto-Shorthand Failure on Address Bar

Post by highend »

There is no failure...

The correct syntax is

Code: Select all

::goto "Desktop";
If you read the description in the help file a bit more thoroughly you should notice that this is only valid for multi-script resources... (first line after the caption). Your "Desktop;" is NOT a multi-script resource!
One of my scripts helped you out? Please donate via Paypal

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: The Goto-Shorthand Failure on Address Bar

Post by armsys »

Hi Highend,
highend wrote:If you read the description in the help file a bit more thoroughly you should notice that this is only valid for multi-script resources... (first line after the caption). Your "Desktop;" is NOT a multi-script resource!
You're correct. The help file specifically expresses that the shorthand works for the caption.
In my address bar case, it isn't a caption at all.
Thank you for pointing my oversight. :appl: :cup:

Post Reply