The return object from addEventListener does not seem to contain class? The only interesting property is 'data' and I can not make sense of what it actually contains.
Or is there perhaps a way to set the event to only listen to a certain class like you can with app.notifiers.add()?
What I want to do is catch the event for event "Mk " with class "ClSm".
Thanks!
Is there any way to read out CEP Event class?
Is there any way to read out CEP Event class?
Does that help?
https://forums.adobe.com/thread/1557589
Regards,
Davide Barranca
---
http://www.davidebarranca.com
http://www.cs-extensions.com
https://forums.adobe.com/thread/1557589
Regards,
Davide Barranca
---
http://www.davidebarranca.com
http://www.cs-extensions.com
Is there any way to read out CEP Event class?
Thank you Davide!
After a bit more digging the event.data property contains two values. First one is the eventid that I trigger on in the first place. The second one is a random number that never stays the same. No idea what it is...
Edit: See below for solution.
After a bit more digging the event.data property contains two values. First one is the eventid that I trigger on in the first place. The second one is a random number that never stays the same. No idea what it is...
Edit: See below for solution.
Is there any way to read out CEP Event class?
To clarify if anyone reads this looking for the same solution. I took the second ID and ran it trough basically the same function you linked to:
var desc = new ActionDescriptor();
desc.fromID(id);
var idNull = charIDToTypeID('null');
var ref = desc.getReference(idNull);
var toolID = ref.getDesiredClass();
var stringID = typeIDToStringID(toolID);
id is the second parameter in event.data.
var desc = new ActionDescriptor();
desc.fromID(id);
var idNull = charIDToTypeID('null');
var ref = desc.getReference(idNull);
var toolID = ref.getDesiredClass();
var stringID = typeIDToStringID(toolID);
id is the second parameter in event.data.