I have a LibreOffice spreadsheet open all the time on my MacOS Mojave machine, running KM 9.2. I make entries on this from time to time while working, and normally never close it. Overnight the machine sleeps and wakes up when required in the morning.
I need to ensure that the spreadsheet is saved from time to time, so that work is not lost e.g. if we get a power cut - doesn't happen often but when it does it could be serious if the file is not saved!
There is an autosave function in the spreadsheet but I don't want to rely on it.
I have created a KM macro that saves the spreadsheet every x minutes, when it is active, and that works ok. All it does is to type Cmd-S to save at the appropriate time.
But it does not work if I go to the spreadsheet, make an entry and then leave the spreadsheet, all while the KM timer is still running.
I want the macro to work while the spreadsheet is hidden but still running, and the Cmd-S keystroke must of course apply to the spreadsheet, even if I'm working on a different app at the time the KM timer triggers the Save keystroke
In the KM Wiki it says triggers for a macro include whether the app is one or more of running, at the front or hidden. When creating the macro in KM 9.2 however, I only have trigger options relating to Launch, Quit Running or Activate/IsActive. Nothing about the app being Hidden.
When I make an entry in the spreadsheet & then go to another app, I think the spreadsheet is "running but is hidden". So I think my macro needs to run even when the spreadsheet becomes or is hidden. And as mentioned, it must send the Save keystroke to the spreadsheet evwen though ity is not being used.
Has anyone any suggestions as to how this macro can be made to work please?
Many thanks in advance for any help you can give