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.

Eventghost jump action in a python script

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
cesarius
Posts: 5
Joined: Wed Aug 26, 2009 2:23 pm

Eventghost jump action in a python script

Post by cesarius »

Hello,

I've got a problem with the Jump action NewJumpIf if I use it in a phyton script, for example in the script I call it with this line:

Code: Select all

eg.plugins.EventGhost.NewJumpIf(XmlIdLink(998), 2, False)
The XmldLink(998) is another Macro in my evenghost.xml file.

I┬┤ve got as Error:

Code: Select all

Traceback (most recent call last):
Python script "44", line 2, in <module>
eg.plugins.EventGhost.NewJumpIf(XmlIdLink(998), 2, False)
NameError: name 'XmlIdLink' is not defined
It seems like I should define xmldlink, but how ca I do it?

Thnaks in advance!!!
cesarius
Posts: 5
Joined: Wed Aug 26, 2009 2:23 pm

Re: Eventghost jump action in a python script

Post by cesarius »

Hello again,
okay no one responded to the question...I did not resolve the problem it slef but I've managed it with a workaround.
Instead of using the newjumif command I used the eg.TriggerEvent("xyz") and than I put the event in the desired macro.
It works...
Anyway thanks for the great program.
Post Reply