Opening a folder auto-selects the item under cursor
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".
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Opening a folder auto-selects the item under cursor
I'm experiencing a "weird" behaviour that I don't remember I've ever enabled on purpose. I'm not posting this under Bugs because I can't repro on a fresh, so it's very likely that I did something wrong in the past in my configuration. Anyway... this is what happens. When I open a folder, the item under the mouse cursor is automatically selected.
How can I disable this?
To see the attached files, you need to log into the forum.
Last edited by Marco on 14 Nov 2015 17:07, edited 2 times in total.
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Opening a folder auto-selects the item under cursor
Disable Configuration > Mouse Down Blow Up > On file icons as well.
Regardless, this doesn't happen if you open items by clicking anywhere except the icon.
====================
The child item is getting selected even after all mouseclicks are [supposedly] eaten by the open event -- apparently some clicks are leaking.
I'm sure clicks are leaking, because even programmed double-clicks end up selecting a child item.[/size]
[moved to bug reports]
Regardless, this doesn't happen if you open items by clicking anywhere except the icon.
====================
I'm sure clicks are leaking, because even programmed double-clicks end up selecting a child item.
Code: Select all
;AutoHotkey script
;place mouse cursor over a folder icon (where folder itemcount == folder's current list position)
SetMouseDelay, 0 ;Speedy Gonzales!
WinActivate, ahk_class ThunderRT6FormDC ;activate XY window
Sleep, 1000 ;waittasecond
Click 2 ;doubleclick
[moved to bug reports]
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
admin
- Site Admin
- Posts: 67285
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Opening a folder auto-selects the item under cursor
Yep, thanks for the bug and the analysis. Fix comes.
FAQ | XY News RSS | XY X
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: Opening a folder auto-selects the item under cursor
Thanks for the fix. Any chance you can improve it even with Configuration > Menus, Mouse, Safety > Mouse > Single click on icon opens list items?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
admin
- Site Admin
- Posts: 67285
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
-
Marco
- Posts: 2354
- Joined: 27 Jun 2011 15:20
Re: Opening a folder auto-selects the item under cursor
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Opening a folder auto-selects the item under cursor
FYI, enabling both of those options is not recommended because it can lead to race-conditions and odd behavior. Largely due to the timing of when the item is focused and thus differences between <focitem> and <pfaitem>.
See for yourself, from fresh enable both:
Configuration | Menus, Mouse, Safety | Mouse | Single click on icon opens list items
Configuration | Mouse Down Blow Up | On file icons as well
Add PFA:Select a zip file.
Click the icon of an image file.Seem XY triggers the PFA based on the clicked item (an {:Image}), opens floating preview using the current item for its view mode (the zip), then makes the image the current item, updating the floating preview but not its mode.
Better example is to just observe the difference between <focitem> and <pfaitem> with a PFA such as:
I brought this up previously and was deemed crazy. 
See for yourself, from fresh enable both:
Configuration | Menus, Mouse, Safety | Mouse | Single click on icon opens list items
Configuration | Mouse Down Blow Up | On file icons as well
Add PFA:
Code: Select all
"Floating Preview" {:Image}>::if (! Get('#178')) { #178; }Click the icon of an image file.Seem XY triggers the PFA based on the clicked item (an {:Image}), opens floating preview using the current item for its view mode (the zip), then makes the image the current item, updating the floating preview but not its mode.
Better example is to just observe the difference between <focitem> and <pfaitem> with a PFA such as:
Code: Select all
*>::echo "Foc: <focitem><crlf>PFA: <pfaitem>";To see the attached files, you need to log into the forum.
-
admin
- Site Admin
- Posts: 67285
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Opening a folder auto-selects the item under cursor
Yes, it can be reproduced even without "Single click on icon opens list items" when you dbl-click the icon.
This cannot be changed. It's an extreme case and AFAIK only can happen when PFA calls scripts by numbers.
This cannot be changed. It's an extreme case and AFAIK only can happen when PFA calls scripts by numbers.
FAQ | XY News RSS | XY X
-
TheQwerty
- Posts: 4373
- Joined: 03 Aug 2007 22:30
Re: Opening a folder auto-selects the item under cursor
Well the second PFA script shows that it's not just affecting CID-scripts, but if that really were the case then a "solution" is for you to provide a non-number alternative to #178, right?admin wrote:This cannot be changed. It's an extreme case and AFAIK only can happen when PFA calls scripts by numbers.
Anyhow, I wasn't posting this in hopes of it being improved (I've resigned myself to the situation), just alerting others that combining those two options with PFA is a road that passes through Sadness City if your PFA scripts are not robust.
I should have included the work-around for the script in the previous post, so here's that.
Obviously, it depends on what the script does, but generally (due to the nature of single-click on icon) you'll want to just select <pfaitem>. Where it get's tricky is all the ways the PFA can be triggered and the differences between opening a single item vs multiple items of same type vs multiple items of differing types.
This works well in PFA scripts that exhibit these problems:
Code: Select all
if (<pfaitem> != <curitem>) {
selectitems <pfaitems>; // Note the 's' allows it to work for multiple items.
}Code: Select all
"Floating Preview" {:Image}>::if (Get('#178')) { return; } if (<pfaitem> != <curitem>) { selectitems <pfaitems>; } #178;
XYplorer Beta Club