gechu wrote:2. Store the exit macro for XBMC into a variable called "PreviousApplication"
Couldn't you keep the quit actions with the other macros for respective program, and then just put the button events you use to start the other programs to the quit macros.gechu wrote:In my case I have about 4 different applications in my context folder. And none of the applications will have to run at the same time, so just like you suggested, I´ll simply create a macro in the root which looks like this:

gechu wrote:Thank you blaher, that is indeed a way to solve the problem.
The dirty part is of course that applications which isn´t running will try to get closed, but the simplicity of this solution compared to my existing one sure is interesting.
Context folder appA
appB.close
appC.close
appD.close
appE.close
Context folder appB
appA.close
appC.close
appD.close
appE.close
Context folder appC
appA.close
appB.close
appD.close
appE.close
Context folder appD
appA.close
appB.close
appC.close
appE.close
Context folder appE
appA.close
appB.close
appC.close
appD.close
Global folder close
appA.close
appB.close
appC.close
appD.close
appE.closeActually my proposal was more like Livins, but I kinda don't like repeating all those quit actions either. But I'm not sure there is a cleaner way to do it without complicating it unnecessarily.gechu wrote:blaher & jonib, when I read your comments this is the solution I think you are referring to:
The delay would be very small so mostly not noticeable.I have not tried it yet, but I think (as jonib mentioned) that it will result in timing issues when you first want to close an application, and then quickly after that start it again. You could add a delayed start of the application, but I don´t that is desireable because you want the experience to be as snappy as possible.
If you need a pointer to a macro just create for example a Jump action to the macro, then copy that action from EventGhosts config tree and paste to a text document. now you see the syntax for the Jump action, including a number to access the specific macro that you can store in a variable.Regarding my initial question, store a macro in a variable, I know that it is not possible via the GUI, but I my thought was that you could access so much more functionality using the Python API, so why not a pointer to a macro?

It went bad, that's why it smellsgechu wrote:It smells victory!! ;D Thanks jonib!

Users browsing this forum: Bing [Bot] and 4 guests