Hi Luca,
You can convert the event in EG itself by creating a macro with a Python command and entering this line: "eg.TriggerEvent(eg.event.payload[0], prefix = eg.event.suffix)" and then you add the TCP.MediaPortal.Windows.Activate (or Main if you use local) to the macro.
You will get a new event created: MediaPortal.Window.Activate.35 (for Basic home) you can use that event to trigger what you want in EventGhost for only Basic Home.
Good luck !
Hi Achel,
Yes, that's the wrong way to do that.
In EventGhost there are macros, actions and events (triggers).
The little gear icon is a macro, this holds the actions and events.
You have created only an action to substract a payload from an event and create a new event, but you dit not add the event (trigger) to the macro.
So your action should be: eg.TriggerEvent(eg.event.payload[0] = eg.event.suffix, this will trigger an event with the payload in it so you can identify it. (so remove the TCP.MediaPortal.Windows.Activate)
Now you drag the event (TCP.MediaPortal.Window.Activate ['192.168.0.2', u'504', u'"mymusicgenres"']) into the macro (from the left screen to the right screen in Eventghost main screen)
Now you see the event with an lightning bolt icon and it shows "TPC.MediaPortal.Window.Activate" the action you have created will extract the payoad wich are marked between [ and ] and will create a new event with that.
This is starting to look promissing
Try changing the number in eg.event.payload[0] to 1 or 2 you'll see that you'll will get an event with different suffix.
Like MediaPortal.Window.Activate.35 or MediaPortal.Window.Activate.BasicHome
This way you can convert the events with a payload to another event you can identify directly, also you could do something for every window change, but I doubt that you'll need that.