Stop Processing Event

Do you have questions about writing plugins or scripts in Python? Meet the coders here.
Post Reply
jsonnabend
Experienced User
Posts: 127
Joined: Wed Apr 23, 2008 7:35 pm

Stop Processing Event

Post by jsonnabend » Wed Jul 23, 2008 2:54 am

How do I tell EG to stop processing the current event from a Python script?

TIA

- Jeff

User avatar
Pako
Plugin Developer
Posts: 2294
Joined: Sat Nov 11, 2006 1:31 pm
Location: Czech Republic
Contact:

Re: Stop Processing Event

Post by Pako » Wed Jul 23, 2008 6:38 am

jsonnabend wrote:How do I tell EG to stop processing the current event from a Python script?
Simply:

Code: Select all

eg.event.skipEvent = True
Pako

jsonnabend
Experienced User
Posts: 127
Joined: Wed Apr 23, 2008 7:35 pm

Re: Stop Processing Event

Post by jsonnabend » Wed Jul 23, 2008 12:54 pm

Pako -

Thanks for the info. I ended up doing: eg.plugins.EventGhost.StopProcessing(), which I think does the same thing.

- Jeff

User avatar
Bitmonster
Site Admin
Posts: 2239
Joined: Mon Feb 06, 2006 10:28 pm

Re: Stop Processing Event

Post by Bitmonster » Thu Jul 24, 2008 2:59 pm

Both work, but using eg.plugins.EventGhost.StopProcessing() is more the "official" way, since eg.event.skipEvent is not documented.
Please post software-related questions in the forum - PMs will only be answered, if really private, thanks!

Post Reply