Hi, I update the OS from Ventura to Sonoma (to run the version V.11.1 of Logic pro) and now, none of my macros that use 'Click on found image' work. Pre-Sonoma they worked fine - I use plugsearch to open a new software instrument, and then add a gain plugin, which then I want closed - using the 'click on found image'
Do I need to give some new permissions to Sonoma?
Is there another way to close a plugin window in Logic?
I use an M1 Max with the screen closed, and have 2 x monitors connected: 1 is via the built-in HDMI output and a 2nd monitor connected via a USB hub.
KM version 11.03
Make sure KM's Notifications are allowed, then test the image detection using the action's "Go" button when the image is on the screen. What error message do you get?
It may be that you need to grant permissions in various bits of System Settings -> Privacy & Security, or it may be that you are falling foul of the "resolution mismatch" issue that's been discussed here before. The cure for the first is to grant permissions, the cure for the second is to redo your images by using ⌃⇧⌘4 and then dragging an area to screenshot to the Clipboard, and then pasting directly into the image well.
Hi , Thanks for your help - KM's notifications weren't being allowed in system settings, so I enabled them.
Since quitting and restarting KM and KM engine, and re-taking the closed window plugin image using the ⌃⇧⌘4 and pasting into the image well, I'm now getting the error message "Macro cancelled. Move or click mouse no unique image found. Macro 'New AU+insert LP retro' cancelled (whilst executing Close Gain plugin).
Now make sure the image and the macro are both on screen, then use the action's "Go" button to test. Gradually move the action's "Fuzziness" slider to the right until you get a match.
Watch out for a "false detection" against the macro itself, though. You might want to pick a different match option -- "Topmost", "Leftmost", etc -- while troubleshooting.
Given you've two displays and the more you scan the longer it takes and the more chance there is of error, consider changing "all screens" to "Front window", "Front window's screen" or similar once you've got the first bit of detection working.
With the image (on theLHS screen) and KM (on the RHS screen) the ‘Go button’ finds my image in the macro’s image well straight away- a “false detection’?
I can’t get it to find the LHS image at all, despite trying screen options in KM
I also get the error message before the gain plugin has appeared on the LHS screen btw
Will your real-world usage have Logic on the LHS? If not, reverse things. Then make sure you Copy your image from the screen you'll be wanting to detect it on (just in case).
Well, you can't detect the image if it isn't there! For now, just put a high enough value in for your Pause -- say, 10 seconds -- that the image is definitely there. Once you've got image detection working properly you can change that to a "Pause Until..." your image is detected on screen.
Yes, the main screen of Logic will alway be on the LHS, and the image has been copied from the LHS
And yes, putting a pause of 10 secs works!
But I can’t get the “pause until’ my image is detected, to work. The problem seems to be that all plugins have the same Orange/red dot to close them, so as soon as any instrument is loaded, the macro sees this image and closes that plugin, and doesn’t wait until the gain plugin is loaded, as it used to do pre-Sonoma.
There are ways round that. But it would be better if you could find something else to test instead. Does anything change in the app's menus when the plug-in is "open"? Is there a title bar you can detect, or an UI element specific to the plug-in?
You can tell I'm not a Logic user... But there are plenty around, so hopefully someone else will weigh in with some better suggestions!
Well, after a quit of everything and a couple of re-starts, everything seems to be back to normal. Thanks for pointing me to the system 'notifications' which alert me if the macro isn't finishing. Thanks again
Yes. You can use cmd-w, a mouse-click relative to the plugin window's corner or applescript (to click button 1).
I have a macro that adds a Gain plugin via PS, clicks the Gain parameter so that it shows up in the automation lane and then closes the UI. I use cmd-w I think.
That's a great way! - cmd-w closes the top floating window, in this case the gain plugin, and doesn't close the synth - much better than this 'click on found image'
Thanks!