The next step would be for the game to automatically go full screen when the Quick Look window is closed (after it's not needed anymore) for improved immersion.
The problem is with sending the appropriate key codes to ScummVM from AppleScript. Assuming this basic script structure
Code: Select all
tell application "ScummVM"
activate
tell application "System Events"
key code 52 using option down
end tell
end tell
For an example where the script works as expected, here
Code: Select all
tell application "ScummVM"
activate
tell application "System Events"
keystroke "i" using control down
end tell
end tell
Code: Select all
tell application "ScummVM"
activate
tell application "System Events"
key code 96 using control down
end tell
end tell
So, the modifiers seem to work to a degree with keystrokes but not so much with key codes. And I was unable to get anything with Alt/Option to register. I am pretty new to AppleScript so I don't know if I'm missing something here but is there something I or ScummVM should be doing differently to get the sent keys to register right? Any ideas?