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
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.
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
- Bitmonster
- Site Admin
- Posts: 2239
- Joined: Mon Feb 06, 2006 10:28 pm
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.
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.