I have a GUI controll, his name is Jerry.
Say hi to jerry:
PHP Code:
new GuiControl("Jerry") {
x = y = 0;
width = height = 32;
thiso.catchevent(this, "onAction", "DoStuff");
}
I need to trigger that onAction() function, but not by clicking the control.
I need something along the lines of
PHP Code:
Jerry.onAction()
But that particular script, does not work.
Neight does Jerry.trigger("Action"); or any variation of that.
Any solutions?
(Note: I need this type of script, not other variations...I can't trigger DoStuff by itself, because I need information from inside that gui control. And in my
actual script, I have a multitude of controls like Jerry, but they are dynamically generated. Which is why I need this particular script)