Icon Pointer

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

Icon Pointer

Post by armsys »

Referring to Scripting | Icons and States in the manual
You can pass * as placeholder to use the caption as icon pointer:
"C:\|*" goto "C:\";
"C:\Windows|*" goto "C:\Windows";
Questions :blackstorm:
What's the Icon Pointer? :oops:
What's the State? :oops:
XY29.jpg
To see the attached files, you need to log into the forum.

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Icon Pointer

Post by binocular222 »

Uhm, I feel the manual is quite clear:
if you have a script which popup a menu with multiple captions, then
1) State:
Each caption can have a defined State:
State Default = 1
State Checked = 2 (a small tickmark on the left of caption)
State Disabled = 4 (grayout, cannot click on)

2) *
The caption's icon is derived from caption verb. i.e:
"Desktop|*" msg Hi;
this will use the Windows Desktop icon
P.S: From your screenshot, I can see the icon used for C:\ and C:\Windows are different. That's the result from usage of *
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

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

Re: Icon Pointer

Post by armsys »

binocular222 wrote:Uhm, I feel the manual is quite clear...
I still prefer your crystal clear clarification. :appl:
But the outcome isn't shown as advertised. :naughty:
Referring to the script (see the screenshots below), how come Line 3 is missing from the popup menu? :oops:
To see the attached files, you need to log into the forum.

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Icon Pointer

Post by binocular222 »

Then, it should be a bug.
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

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

Re: Icon Pointer

Post by admin »

No, it's one of the nice "improvements" Vista has brought to us: From Vista onwards only one item per menu can be bold.

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

Re: Icon Pointer

Post by armsys »

admin wrote:No, it's one of the nice "improvements" Vista has brought to us: From Vista onwards only one item per menu can be bold.
Thanks Don. :D

Post Reply