Triggering custom script events

Rispondi al messaggio

Emoticon
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode attivo
[img] attivo
[url] attivo
Emoticon attive

Revisione argomento
   

Espandi visuale Revisione argomento: Triggering custom script events

Re: Triggering custom script events

da trixmoto » gio set 17, 2009 3:13 am

No I don't think this is possible, but it is a good idea! :)

Triggering custom script events

da flashk » mer set 16, 2009 4:36 pm

Is it possible to create custom script events and trigger them manually from different scripts?

For example, I would like one script to register for the custom event like this:

Codice: Seleziona tutto

' Register for custom event
Script.RegisterEvent SDB, "OnMyCustomEvent", "MyCustomEventHandler"
Then have a different script trigger the event:

Codice: Seleziona tutto

' Trigger custom event
Script.TriggerEvent SDB, "OnMyCustomEvent", args
This would make it really easy for different scripts to communicate with each other.

Top