Hitcher Wrote:I never realised so much can be done with EG.
As I'd rather not have XBMC close down and restart is there a way to window XBMC when the resolution changes, then fullscreen if and when it reverts back to 1980x1080?
Note: This is currently what I manually do when playing music and switching off the TV so the PC/XBMC doesn't crash.
Hitcher Wrote:I'm part way there using the XBMC action ToggleFullScreen but I can't figure out how to make it initially toggle when the resolution changes from 1920x1080 to whatever it is when the TV is switched off.
metheos Wrote:You should simply be able to add a second macro with the event trigger for whatever the resolution changes to. If you leave eventghost running when the change happens it should show up in the event list as ResolutionChanged.1024x768 or whatever the resolution is that it is falling back on.
Hitcher Wrote:Ah now I get how it works.
Added ResolutionChanged.1024x768 to toggle once and ResolutionChanged.1920x1080 to toggle back again.
Testing now.
Thanks.
metheos Wrote:Glad to hear it's working! Mind posting your macros here in case it helps someone in the future?
You can right click on them in eventghost and copy, then paste it here in CODE tags.
As promised here's my EG solution to the problem -
PHP Code:
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1534">
<Macro Name="RestartXBMConResEvent" Expanded="True">
<Event Name="ResolutionChanged.1920x1080" />
<Action>
XBMC2.ToggleFullScreen()
</Action>
</Macro>
</EventGhost>
<EventGhost Version="1534">
<Macro Name="RestartXBMConResEvent" Expanded="True">
<Event Name="ResolutionChanged.1024x768" />
<Action>
XBMC2.ToggleFullScreen()
</Action>
</Macro>
</EventGhost>
All credit to metheos.

![[Image: sig_zps3af3b48e.jpg]](http://i620.photobucket.com/albums/tt289/Arcanthur/Celestium/sig_zps3af3b48e.jpg)
Search
Help