(Official) LUA Scripting Documentation
set_event_button_script
Set a script to execute on a button press event.
Spec:
set_event_button_script(
string event_type,
string script_name,
string text,
long x,
long y,
double scale)
Parameters
event_type: values: buttonx, buttony, buttonbscript_name:text:x:y:scale:
Valid values for event_type: “ButtonX”, “ButtonY”, “ButtonB”
Incomplete
This documentation is incomplete