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 » Sun Feb 27, 2011 2:11 pm

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 » Mon Feb 28, 2011 1:07 pm

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