Why is it when I "Copy As Python" a Jump or an Enable/Disable statement into a Python Command, it fails?
eg.plugins.EventGhost.EnableItem(XmlIdLink(1426))
19:36:49 Traceback (most recent call last):
19:36:50 Python script "35", line 2, in <module>
19:36:50 eg.plugins.EventGhost.EnableItem(XmlIdLink(1426))
19:36:50 NameError: name 'XmlIdLink' is not defined
Thank you for any help you can provide!
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.
XmlIdLink not defined
-
semihselcuk
- Posts: 1
- Joined: Tue Mar 26, 2013 11:23 am
Re: XmlIdLink not defined
Did you find any solution ? Because i have same problem too ..
Re: XmlIdLink not defined
Anyone have a solution on this?
Just checking back.
Just checking back.
Re: XmlIdLink not defined
This isn't possible as a Python command
Re: XmlIdLink not defined
Are you sure? Seems kind of silly that there wouldn't be a way for EG to control itself programmatically...
Re: XmlIdLink not defined
Absolutely positive.. I've done the research on it... You can google the same results I did..
Re: XmlIdLink not defined
You can insert macro with two actions:
first add eventghost action - Gets item enable state (True when enabled)
and second action immediately after first action - python script, where will be the first line operation handling with variable eg.result (eg.itemstate1 = eg.result)
If you want check more items state, you should repeat in macro this two actions for wanted items and than at the end add last python script action with handling of eg.itemstate1-X.
first add eventghost action - Gets item enable state (True when enabled)
and second action immediately after first action - python script, where will be the first line operation handling with variable eg.result (eg.itemstate1 = eg.result)
If you want check more items state, you should repeat in macro this two actions for wanted items and than at the end add last python script action with handling of eg.itemstate1-X.
Re: XmlIdLink not defined
Can you please expand, your answer may work but I'm having difficulty wrapping my mind around where you're going with this. Mind sharing an example of your scenario?casik wrote: Wed Feb 24, 2016 1:33 pm You can insert macro with two actions:
first add eventghost action - Gets item enable state (True when enabled)
and second action immediately after first action - python script, where will be the first line operation handling with variable eg.result (eg.itemstate1 = eg.result)
If you want check more items state, you should repeat in macro this two actions for wanted items and than at the end add last python script action with handling of eg.itemstate1-X.