View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011102 | MMW v4 | Framework: Scripts/Extensions | public | 2013-07-24 15:43 | 2013-07-24 21:28 |
Reporter | zvezdan | Assigned To | |||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | new | Resolution | open | ||
Summary | 0011102: ISDBScriptControl::RiseEvent method needed | ||||
Description | I 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" | ||||
Tags | No tags attached. | ||||
Fixed in build | |||||