4

GitHub - HerMajestyDrMona/Windows11DragAndDropToTaskbarFix: "Windows 11 Dra...

 2 years ago
source link: https://github.com/HerMajestyDrMona/Windows11DragAndDropToTaskbarFix
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Windows 11 Drag & Drop to the Taskbar (Fix)

This program fixes the missing "Drag & Drop to the Taskbar" support in Windows 11. In the best case, such a simple and basic functionality will return to Windows 11 in October 2022 (or never). For now, we have to use workarounds in the OS that was supposed to "empower our productivity".

Windows11DragAndDropToTaskbarFix works with the new Windows 11 taskbar and does not require nasty changes like UndockingDisabled or restoration of the classic taskbar. It doesn't change any system registry keys (except autostart for itself when manually configured) and does not inject any DLLs to other processes, so it's a very portable solution.

Download Binary (Windows11DragAndDropToTaskbarFix.exe)

Read the Changelog

View the source code (Windows11DragAndDropToTaskbarFix.cpp)

How Does It Work?

The program detects if you're currently pressing the Left or the Right Mouse Button and determines which icon on the taskbar you hover the mouse pointer on. If the cursor stays in the same area for definied number of milliseconds - it simulates the Win+T hotkey and arrow keys in order to restore the intended window, using a quite complicated method. It also supports dropping files to the "Show desktop" button (bottom-right of the screen). The program supports multiple screens, auto startup, and has many configuration options (please read below). Windows11DragAndDropToTaskbarFix has no updates-checking functions and never connects to the Internet, so you don't need to worry about your privacy.

Custom Configuration (Optional)

Since version 1.1 it's possible to configure the program by creating a configuration file at the same location as Windows11DragAndDropToTaskbarFix.exe. The configuration file should be named: Windows11DragAndDropToTaskbarFixConfig.txt.

Please read a separate article: CONFIGURATION for details.

Limitations

  • The program does not support pinning apps to the taskbar using the drag and drop gesture, and this feature is currently not planned. However, you still can pin apps to the taskbar by clicking on their icons with the right mouse button, and then "Pin to taskbar" from the list.

  • I'm not aware of any serious limitations in the current version. Please check #issues

How to Start or Quit the Program?

To use the fix, please simply download the binary file above (or compile it yourself) and start it as any other program. It works as an independent C++ process.

To quit this program, please simply kill Windows11DragAndDropToTaskbarFix.exe or Windows 11 Drag & Drop to the Taskbar (Fix) by the Task Manager.

"VCRUNTIME140_1.dll" was not found error

If you get an error saying that "VCRUNTIME140_1.dll" is missing, please install Microsoft Visual C++ 2015 - 2019 Redistributable x64. Normally, these runtime libraries are installed by default on Windows 11. If you get this error then you most likely manually removed them before, using "Add or remove programs".

New Ideas Are Welcome

If you have any idea how to improve this program, or if you found a different method of determining the window under the cursor - please share it with us!

Code Quality

It's not beautiful, but it works. I also believe that it has been well-optimized by the dynamic thread sleep times and avoiding unnecessary steps (depending on the mouse button click time). Please feel free to issue pull requests to improve it. The software will for sure be updated by me, I just wanted to share it with people as soon as possible. Microsoft seems to do the same thing with their Operating System :)

Donation?

If you love this software so much that you would like to buy me a cola, pizza, or anything else - you can make a donation using the button available on my other project's website: Click here. Please don't forget to mention in the donation message that it's for this fix :)


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK