It's done. I have made a new topic for sharing the code. You can find it here.
I'll leave this one for any future problem I (or anyone, really) may have with GUI scripting.
More GUI troubles ahead.
I'm having problems with the UIObject_Misc_ExecuteServerScript function.
In fact, I don't understand what parameters it should have to fire.
if I only put the name of the script within the parenthesis it does not work.
It would probably help if you gave us an example of what you wish to code because with GUI's half the time the error is previous coding and not the function you're working with.
From what I remember you only need to have UIObject_Misc_ExecuteServerScript("gui_scripthere")
The script has to have gui_ as the prefix or it won't run.
You can also attach extra parameters to it: UIObject_Misc_ExecuteServerScript("gui_scripthere", "x", "y")
Which means you can get also get UI variables: UIObject_Misc_ExecuteServerScript("gui_scripthere", local1, local2)
The script has to have gui_ as the prefix or it won't run.
Yes, that was the problem, now it works. Thanks.
Yes, that was the problem, now it works. Thanks.
Very nice. Just shows off some of the things you can do with the GUI if you take the effort to learn.