digitalcreations / MaxTo

Public issue tracker for MaxTo
https://docs.maxto.net
77 stars 5 forks source link

TeamViewer Compatibility #570

Open spiderscode opened 4 years ago

spiderscode commented 4 years ago

Describe the bug

TeamViewer is not recognised by MaxTo.

System information:

Additional context I have one very large monitor and constantly use TeamViewer to remote into another computer, with both the local and remote computers running several applications. This very quickly becomes a messy workspace. I don't have time to learn/customise some other free/open source application so I decided to trial a proper tool for the job. MaxTo has an intuitive interface that looks native to Windows and can apparently learn where I place the windows of various applications. I quiclky noticed that it doesn't work with:

and then quickly noticed that MaxTo doesn't work with the one application that triggered me to finally sort all of this out: TeamViewer.

I tried searching for a solution online and stumbled across this thread: #211 Based on the solution provided there, I found my shims.json file in my AppData folder and notied that many of the entries aligned with the 'Compatibility' items that are shown in MaxTo's settings window. I tried inserting the following into my shims file (also attached), but TeamViewer still seems to evade MaxTo...

{
    "id": "TeamViewer",
    "descriptions": {
      "en": {
        "title": "TeamViewer",
        "subtitle": "Test",
        "description": "[TeamViewer](http://www.teamviewer.com/) A remote desktop sharing and control tool."
      }
    },
    "iconUrl": "https://www.teamviewer.com/wp-content/themes/tv-wordpress-theme/dist/media/logo-teamviewer.svg",
    "url": null,
    "canDisable": true,
    "defaultEnabled": true,
    "ignore": false,
    "disableSubclassing": true,
    "disableSnapping": false,
    "disableTransparency": false,
    "useMoveWindow": false,
    "emulatesMaximize": false,
    "windowClasses": [],
    "processes": [
      "Teamviewer (32 bit)",
      "TeamViewer"
    ]
  },

Is there any solution for TeamViewer (or the other applications)?

NOTE: the shims.txt file was converted from .json to .txt to allow me to upload it to github. shims.txt

github-actions[bot] commented 4 years ago

Thank you for creating your first issue. We will get to it as soon as possible. This is an automated message designed to manage your expectations. We will most likely respond to your message during Norwegian business hours.

If you should think of additional information, please feel free to add it as a comment. If you are reporting a bug or incompatibility, make sure you include the versions of MaxTo, Windows and any incompatible program.

vegardlarsen commented 4 years ago

I can confirm that this also happens on my machine. MaxTo simply does not receive any events from TeamViewer as of today (even with the latest betas). A quick investigation did not reveal why. I will look more closely at this.

spiderscode commented 4 years ago

Just to add to the above list, OneNote365 also doesn't work. With the exception of Wireshark and Teamviewer, it seems that a common link between the these apps is that they are 'web apps'. Perhaps the same solution that was used for Spotify in #211 can be (easily?) applied to the others?

vegardlarsen commented 4 years ago

That was the first thing I tried. :) Not that easy, unfortunately.

vegardlarsen commented 4 years ago

I've had a long, hard look at this issue, and I cannot make heads or tails of it. In Spy++, window messages to TeamViewer can be monitored just fine. (Spy++ uses some of the same mechanisms as MaxTo does to achieve this).

However, MaxTo just doesn't receive any messages from TeamViewer. TeamViewer simply doesn't trigger either the WH_CBT or the WH_CALLWNDPROC hooks we set; which I can see no reason for.

I've also checked (and double-checked) that TeamViewer doesn't run elevated; which could cause something like this.

I have tried some of the other programs mentioned above. Both Microsoft To Do and System Information do not exhibit this behavior on my machine. This could have been a fluke on @spiderscode's machine. I've also tried "OneNote for Windows 10", and it works well with MaxTo.

PS! Shims by themselves won't solve this issue, as they deal mainly in limiting or changing how MaxTo works with a specific window.