I have a need (well, a desire) to determine within a script whether or not a particular event is enabled.
I realize I'll need to do something like:
x=hs.GetEventRefByName("My Event")
y=hs.GetEventByRef(x)
z=............?...............
Here's where I'm lost.
GetEventByRef returns an object of type EventClass which I have no clue at the moment how to use. I'll need to extract the bit "DISABLED = &H20" (where 1 = event disabled) from the property "misc".
Can someone help me get my head around this and complete z= ?
Thanks.
I realize I'll need to do something like:
x=hs.GetEventRefByName("My Event")
y=hs.GetEventByRef(x)
z=............?...............
Here's where I'm lost.
GetEventByRef returns an object of type EventClass which I have no clue at the moment how to use. I'll need to extract the bit "DISABLED = &H20" (where 1 = event disabled) from the property "misc".
Can someone help me get my head around this and complete z= ?
Thanks.
Comment