I've just purchased KM and after much research I've created my first Macro:
I want two video applications (VLC and IINA) to always open in full screen on my primary display (a projector connected to my MacBook Pro running Mojave 10.14.6, which is my secondary display).
Below please see the macro I've created. KM Interactive Help is telling me all is well (it suggested adding a Pause - which I have - but this makes no difference whatsoever).
I do mean full screen as in "nothing else shows up" (I use the projector to fill a planetarium dome)
The thing is, even with the application full screen options enabled:
VLC only succeeds 90% of the time. 10% of the time it opens up on my laptop screen and I then have to drag it across to the dome screen (which looks very unprofessional to my audiences)
IINA is still new and I haven't used it much - but it appears to be temperamental at times too.
From everything I can see online, KM should have no problem opening applications in external windows. Yet for some reason, it has having absolutely no effect on my VLC and IINA.
Is that not strange? Is it a bug perhaps? Or is there something I'm not doing correctly? (I hope it's the latter!)
Unfortunately I don't have a 2nd monitor to test this with, so I can only help via speculation and guesswork.
First, I would make 1 macro for VLC, and once you get it to work, Duplicate it and edit to work with IINA. That way if you need to make some changes, you can, but each one can work independently of the other.
Second, I'll suggest VLC since I know that one better (I, too, have only started using IINA). Make the "Pause Until" wait until VLC is at the front and that the front window exists. (It shouldn't matter what is in the front window, just as long as VLC has a front window.)
Third: move the window to the screen that you want it on. (This is the part I can't really help with.)
Fourth: make it full-screen.
If that still doesn't seem to work, post your full macro and maybe someone here can spot what might be the breakdown in communication.
Well, the first step in troubleshooting something like this, is to confirm/correct that you have the Projector setup as the "Main" screen.
Have you done this using the macOS Preferences > Display?
With a VLC or IINA window open in the "Main" screen, run this test macro:
MACRO: Move Window to "Main" Screen
**Requires: KM 8.2.4+ macOS 10.11 (El Capitan)+**
(Macro was written & tested using KM 9.0+ on macOS 10.14.5 (Mojave))
#### DOWNLOAD Macro File:
<a class="attachment" href="/uploads/default/original/3X/8/6/86f00502abf375a9f114bf0f812f581937815210.kmmacros">Move Window to "Main" Screen.kmmacros</a>
**Note: This Macro was uploaded in a DISABLED state. You must enable before it can be triggered.**
---
<img src="/uploads/default/original/3X/7/d/7db9d4d285de7a3e9611af4d84f892e27046f6d0.png" width="475" height="764">
`~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
Then, to test if KM can "see" windows in your apps:
1. Activate VLC (or IINA)
2. Pause Until VLC is at the front
3. Display Window
* Front Win Name: %WindowName%1%
* Front Win Frame: %WindowFrame%1%
Once we know for sure that:
1. KM can "see" your apps
2. Your Projector is in fact the "Main" screen
then we can work on making full screen -- which should be easy.
The thing is, I did originally begin with a single macro for the VLC app - but it also completely ignored the KM macro. I tried positioning the VLC window in different places and different screens, but it never responded to any of the KM instructions.
It's as if the VLC and IINA apps are not aware of / listening to the KM instructions (?)
OK this is brilliant, so the app windows ARE responding to KM via a hot key. In fact, I have assigned a hot key to my macro and the active window DOES respond to the hot key:
I don't know. Since I don't have your apps, I can not test.
But in general the Application Launch trigger works well.
You may need to add a Pause Until the app if frontmost, and maybe a small Pause (like 0.2 sec).
That looks like the Automation permission, which controls AppleScript control of an Application. See the Automation settings in the System Preferences, Security & Privacy preferences.
Does anyone know how to manually add apps to the automation permission list?
I've tried removing KM (app & engine) from the Accessibility Permission list and adding them when requested on restarting KM - but that has made no difference.
Thank you again everyone, I think / hope we are close to clinching this now....?