2009-06-04, 18:26
Ayla Wrote:Thanks for the reply MaestroDD !
What I want to do, is change monitor resolution on-the-fly.
With Plex I had the "red" button on my Harmony remote point to a small script which only job was to do a "F3" key press.
In SwitchResX I have "F3" as a global shortcut to enable 1080p@60Hz for example.
Is there any way I can achieve this "F3" button press now that I use XBMC instead of Plex (I can of course change the "F3" key to another key in SwitchResX if that's necessary)?
EDIT: I found this command by googling: XBMC.RunScript(q:\scripts\test.py)
So maybe I could do a Python script which only function is to "press F3" and point to it with the above command in the keymap.xml?
/Martin
I got my scripts working.
I now have a "F2.py" and a "F3.py" script.
They both contain code that calls on applescript to do the keypresses that I want.
In Keymap.xml I have mapped two buttons to call the .py scripts with XBMC.RunScript(/Users/blabla/F2.py).
It works great and I can now switch between 1080p60 and 1080p24 "on-the-fly".