I am using Kodi media server for all my movies. Most of the control of Kodi I use a trac pad. My Denon receiver is controlled through indigo and
working volume and switching inputs is with a remote linc 2. I can toggle Kodi between fullscreen and windowed with F+command on the keyboard
but watching movies I don't keep the key boar handy. I am trying to set up a button on the remote linc2 to do the toggling using apple script but can't
get it working.
Set up a trigger on the button that runs the below apple script:
try
tell application "Kodi"
activate
delay 2
tell application "System Events" to keystroke "F" using {command down}
end tell
end try
The script complies and runs without error, but won't toggle the display.
The first part works and Kodi is activated to the top window but thats it.
Any suggestions or a different way to do this would be appreciated.
Thanks
Elwood