Emit
This function is used to add a new event to the event queue. Widget scripts use this to notify the main program that the user has interacted with the widget in some manner. You can also add your own custom events by setting the event id parameter.
Syntax
- global Emit(number id, Object source=nil, number data=0, number x=0, number y=0, number width=0, number height=0, Object extra=nil)