Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Python EnableExclusive

If you have a question or need help, this is the place to be.
Post Reply
Niekie
Posts: 2
Joined: Fri Jan 05, 2007 12:29 pm

Python EnableExclusive

Post by Niekie »

Hey all I have a little question,

Is it possible to do a EnableExclusive from a python code?
I have tried many ways, only I cant seem to get it done.
Thanks in advance.

Niek
User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Post by Bitmonster »

No, this is not possible. The reason is, that there is not static way to identify a target in the tree in a textual form. If the user would move the target, the script would break.

You can work arround this with a kind of "dispatch macro" that would take a result from a script and then processes a chain of JumpIf actions to other macros, which then enable the target.
Niekie
Posts: 2
Joined: Fri Jan 05, 2007 12:29 pm

Post by Niekie »

Thanks for the quick response.
I have now made a folder with a few macro's in it that get executed on the TriggerEvents made by the python script.
It does the job pretty well :)
Post Reply