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.
To see the attached files, you need to log into the forum.

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

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...)

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.
To see the attached files, you need to log into the forum.

highend
Posts: 14994
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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