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.

XmlIdLink not defined

If you have a question or need help, this is the place to be.
Post Reply
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

XmlIdLink not defined

Post by rdgerken »

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!
semihselcuk
Posts: 1
Joined: Tue Mar 26, 2013 11:23 am

Re: XmlIdLink not defined

Post by semihselcuk »

Did you find any solution ? Because i have same problem too ..
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Re: XmlIdLink not defined

Post by rdgerken »

Anyone have a solution on this?

Just checking back.
abuttino
Experienced User
Posts: 144
Joined: Sun Jun 02, 2013 4:01 am

Re: XmlIdLink not defined

Post by abuttino »

This isn't possible as a Python command
rdgerken
Experienced User
Posts: 89
Joined: Fri Sep 21, 2012 7:41 pm

Re: XmlIdLink not defined

Post by rdgerken »

Are you sure? Seems kind of silly that there wouldn't be a way for EG to control itself programmatically...
abuttino
Experienced User
Posts: 144
Joined: Sun Jun 02, 2013 4:01 am

Re: XmlIdLink not defined

Post by abuttino »

Absolutely positive.. I've done the research on it... You can google the same results I did..
User avatar
blackwind
Experienced User
Posts: 182
Joined: Wed Sep 12, 2012 2:59 am
Location: Canada
Contact:

Re: XmlIdLink not defined

Post by blackwind »

Has anyone come up with a solution to this yet?
/bw
casik
Posts: 1
Joined: Sat Feb 06, 2016 10:50 pm

Re: XmlIdLink not defined

Post by casik »

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.
Cypher16e
Posts: 7
Joined: Thu Oct 08, 2015 12:58 am

Re: XmlIdLink not defined

Post by Cypher16e »

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.
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?
Post Reply