View Issue Details

IDProjectCategoryView StatusLast Update
0011102MMW v4Framework: Scripts/Extensionspublic2013-07-24 21:28
Reporterzvezdan Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Summary0011102: ISDBScriptControl::RiseEvent method needed
DescriptionI don't know if this is possible, but it would be nice if we could have such method which could allow rising some event from one script to some another one. I am currently using the Timer object for such thing, but it would be much better if I could use some official method just for that.

Here is my quasi-solution. In one script I have:
    Set SDB.Objects("MNoExpTimer") = SDB.CreateTimer(1)
    SDB.Objects("MNoExpTimer").Enabled = False
    Script.RegisterEvent SDB.Objects("MNoExpTimer"), "OnTimer", _
            "oExpTimer_OnTimer"


and in another script:
    SDB.Objects("MNoExpTimer").Enabled = True

Not quite elegant using timer with 1 ms delay, right? It would be much better if I could write in one script:
    Script.RegisterEvent SDB, "OnCustomEvent", "CustomEventHandler"

and in another script:
    Script.RiseEvent "CustomEvent"
TagsNo tags attached.
Fixed in build

Activities

There are no notes attached to this issue.