Using selection rectangle to select multiple items does not always registered unless you directly click on at least one of the items. It's a very annoying issue. To reproduce:
1. Go into any folder
2. Go back
3. Using selection rectangle, multiple select some items (even one item is enough)
4. Run ::echo <curitem> in address bar
Nothing is selected even though visually the files are selected.
[SOLVED] Selected Items Not Registered
Forum rules
You might want to read this if you're looking for priority service
Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
You might want to read this if you're looking for priority service
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
-
Enternal
- Posts: 1175
- Joined: 10 Jan 2012 18:26
[SOLVED] Selected Items Not Registered
Last edited by Enternal on 01 Apr 2013 11:18, edited 1 time in total.
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Selected Items Not Registered
<curitem> uses the selected and focused item. If you go one level up, the focused item is the folder you've stepped into, and if your mouse selection does not contain that folder, <curitem> will be empty^^
Take the steps again and at the end use:
and you'll see, that you get the expected output.
Take the steps again and at the end use:
Code: Select all
echo <selitems>;One of my scripts helped you out? Please donate via Paypal
-
Enternal
- Posts: 1175
- Joined: 10 Jan 2012 18:26
Re: Selected Items Not Registered
Ah I see the problem. For scripts, I have been using <curitem> the entire time. So it is working as expected. Thank you.
-
FluxTorpedoe
- Posts: 906
- Joined: 05 Oct 2011 13:15
Re: [SOLVED] Selected Items Not Registered
Indeed as highend mentioned, the selected vs focused is a tricky trap.
It can be even worse: CTRL+Click on 2+ items, then CTRL+Click on one of them to deselect it. It gets deselected but stays focused! Logical... but dangerous depending on your scripts.
As a safety (when needed), I now tend to force the selected item(s) to be focused before proceeding:
PS: That way you're sure to get your <cur...> working (<curitem>, <curext>...) as it should.
It can be even worse: CTRL+Click on 2+ items, then CTRL+Click on one of them to deselect it. It gets deselected but stays focused! Logical... but dangerous depending on your scripts.
As a safety (when needed), I now tend to force the selected item(s) to be focused before proceeding:
Code: Select all
selectitems get("selecteditemsnames", "|"); // Ensure selected item(s) are focused• Scripts: Session Manager
| SlideShow | Collection Manager | Power Launcher | Akelpad syntax highlighting | ...
XYplorer Beta Club