-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with Win11 23H2 when UAC is off #98
Comments
When Windows11DragAndDropToTaskbarFix is running in this build of Windows, I cannot get the dragged file to the desired icon, there is a shift of 5-6 icons to the right relative to the place where I drag |
Did you disable the Known Pixels detection, as described here? https://github.com/HerMajestyDrMona/Windows11DragAndDropToTaskbarFix#limitations Have you tried to increase timings in the configuration file? UAC problem was reported/discussed before. It might be some Windows limitation that when UAC is off - all programs are running as administrator and have no permissions for each other. Therefore drag and drop can't make operations in other windows, because they're also some kind of "sandboxed". |
And why on the Earth do people still need to use this program? The drag and drop should be working natively on Windows 11. |
It doesn't work, I recorded a video in the next thread |
It's not working when UAC is off. I needed this program when UAC is off, and it worked well until 22h2, but it doesn't work in 23h2. |
So when UAC is on, the native drag and drop starts working as intended (without this program)? |
In short the situation is like this:
|
Yes. |
I disabled UAC by the Control Panel (set to Never Notify), but in regedit, key:
is still:
After I changed it to:
And restarted the computer, the native drag and drop stopped working. |
The problem in W11DADTTF after the recent windows updates, it's that it doesn't detect the correct number of icons on the taskbar. In debug window I see:
But I have at least 17 icons visible on the taskbar (starting counting from the weather one).
hWndMSTaskSwWClass is But this window is much smaller now when checking with Spy++ So basically, window MSTaskSwWClass that was supposed to be the width of all icons on the taskbar is now smaller, and the icons are outside of it, on a window with class Without that core information, the Windows11DragAndDropToTaskbarFix is unable to guess which icon on the taskbar the mouse pointer is currently on. This entire program is about guessing things, it doesn't know the real positions. I think Microsoft released a buggy update where this MSTaskSwWClass window doesn't resize correctly. Or maybe they intended to use it for something else. But come on, they can't even fix their native drag and drop to work without UAC... |
Can you guys please download this version? https://mega.nz/file/xUlk0RYY#O-TDTXy7EIkI1bdKWvi5ocJR5AwWjYHlgzMAJaE-ggw Then edit file:
Might need to change the Offset, but 7 is what fixed it for me. I added some quick dirty workaround:
and...
So generally adding (or decreasing if negative number), number of icons that the program detected, and also faking the |
Therefore, your utility still remains extremely relevant and requires updating and support, because these crooked fools from Microsoft managed to break basic things with which there have never been problems. In the new edition of Win 11, I noticed a difference in the notification icon in the far right corner. Previously it was a callout - a rectangle, and now it is a bell..... Maybe because they changed the appearance of the icons in the right corner - everyone else is now branded differently? |
@LiquidatorFX I posted a comment one minute before you: #98 (comment) If you get a chance, please download it, add the configuration line and test if it works. After few days of testing, I might release an official update of this old program, lol. |
Yes, this update definitely works better than before! Now hitting the icon that is being drawn is almost perfect! It seems to me that this way I get the icon I need directly (the one with the adobe audition)! but the leftmost ones are still shifted a little by 1-2 icons, but this is still much better than half the panel as it was before ;) |
Well, if we need to use different numbers, and side icons are still incorrectly clicked then it's not a good solution :( What is the number that works best for you for the left-most icon? I thought this should be the one to base on... |
In fact it turns out like this If I set it to 8 and only the salamander file manager is running on the taskbar on the right - the hit is perfect Next, I open 2 working applications, Audition and Pegasus, and then the offset in the program must be adjusted again - by 1-2 icons, i.e. up to 9 or 10, so that it hits them perfectly 1080.mp4so I see that there is also a small dependence on the number of actually open applications in which we copy... hmm, as soon as I open two working applications 8 it no longer works and needs to be adjusted by 1-2 icons..... but it’s all the same better than before |
So maybe we need to make some algorithm that automatically sets the offset, based on the current "originally" detected icons? Please download this version (it has more debug information): https://mega.nz/file/gB8k2ZoD#PoF4HLdBOa4K9LiNV4bh8aTlzzsNlqnPUuCjsrJuB5I Can you enable the console and the debug output and see what it shows?
I'm interested in texts:
and:
It would be useful to have a list of when it's working correctly, for example a table with 3 columns:
Maybe this can be done with some math :D |
That is, I catch myself in the region of 8-9 and with the main applications running, in which I use drag (audience or pegasus), I can, in principle, with a small error, hit exactly the right window, but if the applications are closed, then the hit can shift by 1-2 icon... something like this In principle, the previous version of the fix also worked and I was already able to work quite comfortably with drag and drop |
I also noticed that the two Wiindows buttons on the far left next to the start of the “search” and “task view” shortcut are not highlighted = they do not participate in the process when you try to point something at them |
I'm stupid. I wrote to test the far-left icon while I meant far-left one. You don't need to restart the program after changing the settings. When you make changes in the config file (CTRL+S) it should restart itself automatically. There was probably additional config variable that removed the message box confirmation about it :) The buttons near the start menu are not supposed to work, because they're not being triggered by these hotkeys that this program is stimulating. So it's expected behaviour. Before Windows update, was this program correctly determining the icon 100% of the time? I hoped that adding extra offset would be the correct way, but maybe it doesn't resize by additional icon size, just some pixels, like half of the default icon size... Not so good. They definitely complicated it, and I wonder if it's a bug on Microsoft's end, or maybe they damaged it intentionally. I'm out of ideas how to detect the current length of icons area in automated way :( Only some math with praying that it behaves the same on all DPI scaling settings can save us One more thing: why can't you change that ...LUAC registry key, and then disable UAC notifications normalny? Wouldn't it behave exactly the same with the native drag and drop fixed? |
Thank you, HerMajestyDrMona. However, sometimes if there is a Windows settings icon or Edge icon in the taskbar, it not work properly. However, it was inconvenient because this program did not work for a few days after updating Windows. Although it is not perfect yet, thank you for fixing it. |
Yes it worked great
As I wrote earlier, it doesn’t work for me under the built-in administrator account with both UAC enabled and disabled. The built-in one works only on a newly created washing account, but for many years I have been using only the built-in “Administrator”, because it has the least restrictions on working with system files and does not pop up any children’s windows to confirm further actions, which greatly irritate me;) After all, after they came up with the big UAC, it became tiresome for me to use other accounts due to many restrictions for lamers. In any case, thank you for the fix, with its help it works fine, I selected an offset equal to 8 or 9 for myself and now I get right where I need it when dragging |
I understand, but this key:
Did not change for me to "0" when I disabled the UAC notifications by the Control Panel. After that the native drag and drop still worked for me. I wonder if your By the built-in administrator account, you mean some hidden account on Windows, not the first-created Administrator account? That probably changes many things, as I never even tried to use it. In fact, I quite approve the UAC idea for security reasons. So probably on this built-in account you can't ever enable the UAC fully to get D&D working. Thinking about it now, I think the reason of why the native drag and drop is not working with UAC disabled, is due to permissions:
Maybe one of the solutions would be researching which service runs with lower permissions on the administrator accounts, and then restarting this service with higher permissions? But obviously it can bring security risks. From what I remember, this I'll try to make some research and see if I can find the correct algorithm of how incorrectly the Actually, it might not even be as hard as I'm worrying. I can basically see how much the |
|
Sorry guys, I think it will be impossible to fix, unless Microsoft fixes it with their update. I programmed a brand new function to detect for the Taskbar window changes, when an app icon is being created:
But it wasn't working in my tests. So I checked it with Spy++, and it's illogical: Video: https://mega.nz/file/hZEUGaAQ#aVOM2ElUu0p5oSyxB6U-1OUqy0LukheYNQWiavmC3RI This I can't detect how many apps are there on the taskbar, because the only window that helped identifying it has now incorrect sizes reported. So the only solution is waiting for Microsoft to fix it (hahahahahahaha), or get the native drag and drop working :( One more solution could be adding an offset option to the program tray icon context menu... So users could switch it while the program is running, but I hate non-automated methods. It would be annoying to worry about such a simple thing :/ |
I understand. Thank you for your efforts so far. I think you can close this thread. |
Thank you very much for your efforts, with the fix for specifying manual offset it already works and does not cause any discomfort |
I'll leave the thread open, to remember about it. Maybe one day I get some workaround idea. Yesterday even Bing AI Chat was misleading me about possible solutions, providing calls that were never supposed to get the number of icons xD |
I will leave this here, I was looking for solution to fix drag and drop not working on build 22621 on account with administrative rights and UAC disabled and this worked for me.
|
This does not work for the built-in administrator account (In the Windows operating system, the built-in superuser administrator account -- the first account created when the OS was installed -- has the highest permissions of any profile on the computer system. That means the built-in administrator account has elevated administrator privileges to do anything on the system without requiring confirmation. The built-in administrator account can bypass all user access control (UAC) protections). Since the superuser automatically bypasses all restrictions - any kind of manipulation is obviously useless and the built-in drag and drop, which is somehow tied to enabling/disabling UAC, does not work on the superuser account.... another bug of Wndow 11 and this utility solves it in my case this problem |
Aren't you a bit scared to use that superuser administrator account on such a buggy system like Windows? From what I understand, each process you start gets unlimited permissions, even the web browser. You don't even need to run the program as administrator, because it is done this way automatically. You probably have your reasons to use your PC this way, but in my opinion it's extremely risky. I keep UAC enabled even with the notifications on. Sometimes it's hard to change system settings (e.g. need to change owner / give permission to system registry keys before I can edit them), but it's still not that big deal to take a risk like this. |
Why be afraid? What is the risk? |
I mostly meant the security vulnerabilities in Internet Browsers, which are not that rate. And obviously hundreds of normal Windows vulnerabilities. So yeah, it would feel unsafe to even make online shopping knowing that some running script can have full access to your OS. With UAC enabled, most of malicious code still won't have access to your entire system and can cause less harm. With UAC disabled, programs are still running in normal user mode, unless the program decides to start "as administrator". But what you are doing, by using the built-in Administrator account is forcing literally every program on your PC to run with maximum privileges, even when it doesn't really intend to. So yeah, leaking data to Google, Facebook, Microsoft or other companies is still not as terrifying as leaking it to hackers with seriously bad intentions. |
Are you a famous world-class billionaire? ;) |
some changes and finally works for me(buggy but working) : OS Build 22621.2361 and UAC off
and finally add
where you check mouse position on the Tray you may need some adjustments and ,for sure, optimisation i'll use my buggy version until the Next official release :D |
@Mast3r0mid I'm not sure how it's supposed to work: It seems to return the 1440 for me (on my 1920x1080 laptop). Maybe it helps when the Start menu button is in the middle? But I think most of people set it back to the right... |
hotfix 2 seems to work fine for me. |
Which one is Hotfix 2? The second .exe on mega which I uploaded? The offset solution is bad. It sometimes works, sometimes doesn't. We need to figure out a better one. The best thing would be finding how it's dependent by the other open apps. Like, why does it sometimes resize every 1, 2 or 3 icons when they're closed? Maybe they did some broken (as usual) "improvement" for the centered start menu. |
Yes, I am referring to the second .exe. In the meantime I'm happy with this temporary solution, if I notice any bugs I'll report them. |
Thank you for your valuable work and ideas. I've noticed that your app isn't currently functioning, and I appreciate the effort you've put into it. |
Thanks, It's perfect! |
Oh, so you use some Does it work for the icons that currently don't have the window open? Generally, Windows11DragAndDropToTaskbarFix allows many configuration options which not only allowed to restore the drag and drop, but added new features to it. So while it might be good to use something that works with UAC, I still think it would be great to fix the current W11DADTTF which has many problems detections, accidental drags prevention, support for the left hand users and more. On the other hand, since it's not needed by 99.5% of users now, maybe it's not worth the efforts. |
TaskBar DragAndDrop(NO UAC) v.1.0.1-- Works perfect! Thank you! (tested Win 11 pro 22621.2428) |
Yup, UI Atomation |
I actually included the C++ UI Automation (with help of GPT-4). I am able to count the number of icons on the taskbar now, however it seems like it's actually a bug after Windows updates, not really a problem with this app. It seems like they start counting apps window even with including the logo windows button. So even though I have the number of icons on the taskbar correctly detected, there are still some minor issues detecting which icon ID it is. I would probably need to rebuild this program to use it fully, but that will require to take care of all the other functions :( So I think I'll just find a way to return the coordinates of the first icon, then the last icon and determine the width this way :) |
Okay... I think the program is fixed for now: https://github.com/HerMajestyDrMona/Windows11DragAndDropToTaskbarFix/releases/tag/v.2.4.0.0-release I didn't test how it behaves on multi-monitor though ;( |
This program was useful when I turned off UAC in Windows 11 22H2, but it no longer works in 23H2.
I updated windows 11 22H2 to September 26, 2023—KB5030310 (OS Build 22621.2361) Preview Cumulative Update(https://support.microsoft.com/en-us/topic/september-26-2023-kb5030310-os-build-22621-2361-preview-363ac1ae-6ea8-41b3-b3cc-22a2a5682faf), then no longer works when UAC is off.
The text was updated successfully, but these errors were encountered: