Skip to content
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

Vmware support #77

Open
AndnixSH opened this issue May 17, 2022 · 10 comments
Open

Vmware support #77

AndnixSH opened this issue May 17, 2022 · 10 comments

Comments

@AndnixSH
Copy link

Is it possible to support drag and drop files coming from Vmware, like from guest to host? this used to work on Windows 10

@HerMajestyDrMona
Copy link
Owner

It seems to work for me. Do you have vmware tools installed on the guest machine? Is it running Linux or other Windows?

@AndnixSH
Copy link
Author

I'm using ubuntu 20.04.3 in guest. It comes with build-in vmware tools. Graphics, copy paste and drag and drop are supported.

@HerMajestyDrMona
Copy link
Owner

Are you trying to drag-and-drop to the taskbar area, or to another window?

What if you put Vmware in the windowed mode that allows you to see host's desktop, and drag-and-drop file there? Can your mouse escape the guest's window with the dragged file and copy it to your host's desktop?

@AndnixSH
Copy link
Author

Yes, this way works fine but it's annoying to put in windowed mode everytime. I tried to drop files from guest into taskbar then to explorer icon but the thumbnail preview doesn't show

@HerMajestyDrMona
Copy link
Owner

Can you please try to put these configuration lines: #72 (comment)

Restart the W11DADTTF, try some drag-and-drop from Ubuntu to taskbar, close the W11DADTTF and upload the log file here?

@AndnixSH
Copy link
Author

here is the log

Problem03042022.txt

@HerMajestyDrMona
Copy link
Owner

Thanks for the log. I can see many lines like:

A strange problem has been detected. The Low Level Mouse Hook thread claims that the mouse button is pressed, but GetAsyncKeyState returned false. Interrupting not to cause issues.

I wonder if it's the actual issue, or something earlier fails.

Also there is:

DetectKnownPixelColorsToPreventAccidentalEvents: Detected INCORRECT pixel status: 0. Ignoring the loop...

Could you please also test how it behaves with this configuration line added?
https://github.com/HerMajestyDrMona/Windows11DragAndDropToTaskbarFix#limitations

DetectKnownPixelColorsToPreventAccidentalEvents=0

@AndnixSH
Copy link
Author

same issue
Problem.txt

@HerMajestyDrMona
Copy link
Owner

Interesting... It seems like the LowLevelMousePressProc (WH_MOUSE_LL) doesn't detect mouse clicks when they're done inside a virtual machine. So the program thinks that the mouse button was not pressed at all.

I now tried not to use the WH_MOUSE_LL thing at all, and only depend on ```GetAsyncKeyState(VK_LBUTTON)`` (as in the first version of the program)`, but it also doesn't work. When the mouse is clicked inside a VM window, the program is unable to determine mouse click events and position at all. I suppose it might be some security thing from Vmware or Windows that limits access between host and guests. And that's good and understandable.

Unfortunately, it's impossible to find a solution for this problem, because the program depends on "predictions" of user moves, based on mouse click positions. When it's unable to determine this core information, it's unable to work.

The good news is, the drag-and-drop is back in Windows 11 build 22621 (most likely 22H2 RTM). So you will be able to update Windows soon (in a few weeks/month) and use it again as on Windows 10 :)

@AndnixSH
Copy link
Author

Ok, i will wait for update. Thank you for help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants