Some time ago, XYplorer started to open the "shift-delete" file dialog in the background, which makes deleting files/folders kind of awkward.
The problem occurs when I use the "right click context menu" with the shift key to delete a file/folder without using the recycle bin. It looks like timing matters, and I get the deletion dialog to appear in the foreground when I release the shift key immediately after I clicked on delete. When I don't release the shift key quickly enough, or when I keep it pressed down, the deletion dialog will open in the background (behind the XYplorer window).
Delete dialog opening in background
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".
-
daniel_m
- Posts: 241
- Joined: 11 Apr 2010 11:47
- Location: Windows 10 Pro 22H2, scaling 100%
Delete dialog opening in background
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%
-
RalphM
- Posts: 2145
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
Re: Delete dialog opening in background
I Shift+Delete all the time in XY but it never occured to me to use the right-click context menu for that action.
For me it's just easier to hit 'em both on the keyboard I guess and your problem never happened to me that way.
I know this doesn't really help to solve your problem, unless you're ready to change your habits.
For me it's just easier to hit 'em both on the keyboard I guess and your problem never happened to me that way.
I know this doesn't really help to solve your problem, unless you're ready to change your habits.
Ralph 
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
(OS: W11 26H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
-
daniel_m
- Posts: 241
- Joined: 11 Apr 2010 11:47
- Location: Windows 10 Pro 22H2, scaling 100%
Re: Delete dialog opening in background
Well, my right hand is usually placed on the mouse and therefore I use the context menu. A "shift + delete" would require me to move my right hand from the mouse to the keyboard and back. Doesn't sound like a big deal, but it's surprisingly distracting ;-)
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Delete dialog opening in background
1 - Under Tools, Customize KBoard Shortcuts..., locate the 'Delete (No Recycle Bin) Shift+Del' entry and REMOVE the key combo;
2 - Under User, Manage Commands..., Run Script, copy this code into Script (located in Command Properties) and make SHIFT+DEL to it under Assign KBoard Shortcut...:
Reference: http://www.xyplorer.com/xyfc//viewtopic ... 053#p64053
2 - Under User, Manage Commands..., Run Script, copy this code into Script (located in Command Properties) and make SHIFT+DEL to it under Assign KBoard Shortcut...:
Code: Select all
$list = get(selecteditemspathnames, |);
$tt = gettoken("$list", count, "|");
IF ($tt == 1) { $nm = getpathcomponent("$list", file); $cf = confirm("Are you sure to delete<crlf>$nm?"); }
ELSEIF ($tt != 1) { $cf = confirm("Are you sure to delete those $tt items?"); }
IF ($cf == 1) { delete 1, 1, "$list"; status "$tt item(s) gone for good.", "FF0000", "alert"; }
ELSEIF ($cf != 1) { status "Deletion of $tt item(s) canceled."; }
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
daniel_m
- Posts: 241
- Joined: 11 Apr 2010 11:47
- Location: Windows 10 Pro 22H2, scaling 100%
Re: Delete dialog opening in background
Thanks, but unfortunately the script is not helping since it can only be invoked with the keyboard. In that case, the file deletion dialog is already always in the foreground and not causing any trouble.
In addition, the script calls the Windows file deletion dialog, which makes it necessary to confirm deletion twice (once for the script, once for Windows).
Hope this issue can be resolved somehow (even if it isn't caused by XYplorer but by Windows itself).
In addition, the script calls the Windows file deletion dialog, which makes it necessary to confirm deletion twice (once for the script, once for Windows).
Hope this issue can be resolved somehow (even if it isn't caused by XYplorer but by Windows itself).
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Delete dialog opening in background
I have the same behavior once in a while, too.
One possible solution: An .ahk script / exe that runs in the background and checks if this deletion confirmation pops up and sets the "always on top" flag to get it back in the foreground.
Could be compiled (in that case, the #NoTrayIcon directive should be commented back in) and run from the autostart folder.
It's untested, because atm I can't get XY to show it in the background *sigh*
One possible solution: An .ahk script / exe that runs in the background and checks if this deletion confirmation pops up and sets the "always on top" flag to get it back in the foreground.
Code: Select all
#NoEnv
;#NoTrayIcon
#SingleInstance force
#Persistent
SetTimer, CheckDialog, 250
return
CheckDialog:
IfWinExist, ahk_class #32770
WinSet, Top, , ahk_class #32770
return
It's untested, because atm I can't get XY to show it in the background *sigh*
One of my scripts helped you out? Please donate via Paypal
-
SkyFrontier
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: Delete dialog opening in background
daniel_m said:
"In addition, the script calls the Windows file deletion dialog, which makes it necessary to confirm deletion twice (once for the script, once for Windows)."
Here are some of my settings - so I don't have a second box to deal with:
Delete to recycle bin (Undo & Action Log) - unticked
Prompt before delete (Undo & Action Log) - ticked
Turn off delete confirmation (File Operations) - unticked - this is probably superseding windows bin global settings,
'don't move files to the bin' (which is ticked) and 'show a dialog confirm on exclusion', which is unticked (which is NOT respected, showing a confirm box under Win E - have to dig further but have no time for this as of now).
And yes, I focused on the 'Doesn't Sound Like A Big Deal - so why not?!' approach... (also may help others I saw having such a problem in the past).
Highend: does your solution works (theoretically) on *any* popoup originated from XYplorer...?
"In addition, the script calls the Windows file deletion dialog, which makes it necessary to confirm deletion twice (once for the script, once for Windows)."
Here are some of my settings - so I don't have a second box to deal with:
Delete to recycle bin (Undo & Action Log) - unticked
Prompt before delete (Undo & Action Log) - ticked
Turn off delete confirmation (File Operations) - unticked - this is probably superseding windows bin global settings,
'don't move files to the bin' (which is ticked) and 'show a dialog confirm on exclusion', which is unticked (which is NOT respected, showing a confirm box under Win E - have to dig further but have no time for this as of now).
And yes, I focused on the 'Doesn't Sound Like A Big Deal - so why not?!' approach... (also may help others I saw having such a problem in the past).
Highend: does your solution works (theoretically) on *any* popoup originated from XYplorer...?
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Delete dialog opening in background
It's a system dialog window, it's not tied to XY.does your solution works (theoretically) on *any* popoup originated from XYplorer...?
You'd have a hard time to do the same with windows, that are created by XY because the ahk_class is the same as the main application's window.
One of my scripts helped you out? Please donate via Paypal
-
daniel_m
- Posts: 241
- Joined: 11 Apr 2010 11:47
- Location: Windows 10 Pro 22H2, scaling 100%
Re: Delete dialog opening in background
highend's solution should work because it also takes care of the deletion dialog from the context menu (As stated before, the bug only occurs when deleting using the right-click context menu!). Still not a very convenient solution ... maybe I will start using ahk again ...
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%
XYplorer Beta Club