digitalcreations / MaxTo

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

maxTo conflict with adobe illustrator when running external scripts #799

Open spaciousmind opened 1 year ago

spaciousmind commented 1 year ago

Describe the bug Conflict with running external javascript scripts in adobe programs. When sending scripts to a fullscreen adobe illustrator via external method it maximizes illustrator to a section of maxTo

To Reproduce make sure you have at least 2 sections set up on your monitor in maxTo. open new file in adobe illustrator and set it to full screen (the whole monitor) with maxTo. open any .jsx script for illustrator in vscode and send it to illustrator with the 'adobe script runner' plugin OR use autohotkey and invoke the script in illustrator directly via the RUN command as mentioned here (the COM method does not have the same conflict): https://github.com/Inventsable/Run-Adobe-scripts-with-Autohotkey

Expected behavior script gets sent and runs as expected in illustrator. after it finishes maxTo forces illustrator out of fullscreen and to maximize to one of the maxTo sections

Screenshots

System information:

Additional context Adobe illustrator version 26.3.1 for what it's worth, but same behavior has happened on all older versions I've tried as well. I think this same bug is possibly occurring with other adobe programs too but haven't tested everything yet.

The same conflict doesn't seem to occur when running a script on illustrator via adobe's extendscript toolkit OR when using the COM method via AHK as described here https://github.com/Inventsable/Run-Adobe-scripts-with-Autohotkey

I tried to attach my maxTo config.json but it said it doesn't support that file type?

github-actions[bot] commented 1 year 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 any 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 1 year ago

I suspect you can avoid this issue entirely by setting MaxTo to passive mode. I assume what happens when Illustrator opens a window in "full screen" mode is that it maximizes it (meaning the Windows taskbar should still be visible)?

By setting MaxTo to run in Passive mode instead, it would not intercept the maximize event unless you are holding Shift on your keyboard.

Can you try this approach to see if it is valid?

Another option is for us to set up a compatibility shim for the specific Illustrator window, if that is possible. That would require quite a bit of coordination and testing.