EXECUTES THE PROGRAM FROM LABEL L WHEN A USER EVENT IS TRIGGERED
ACTION
The command ON_USER_EVENT L assigns a label (which must be defined in the program) from which the program will run every time a user event is triggered.
A user event is triggered when FORM0 receive a message numered WM_USER + 3000. In this case, the system variables USER_EVENT_WPARAM and USER_EVENT_LPARAM contents the parameters WParam and LParam of the message.
SYNTAX:
ON_USER_EVENT L
USE ERROR EXAMPLE
label event_handler
print handle(0)
on_user_event event_handler
dll_on "MyDLL.dll"
print dll_call1("USER_EVENT",handle(0))
dll_off
end
event_handler:
message "event triggered by USER_EVENT of DLL"
return
ON_USER_EVENT
ON_USER_EVENT L
SEE ALSO
OFF_USER_EVENT
USER_EVENT_LPARAM
USER_EVENT_WPARAM