MADRIX Forum • Have a question abount create GUI Control
Page 1 of 1

Have a question abount create GUI Control

Posted: Wed Apr 18, 2012 4:15 am
by chen
I want to create a ctrlbutton in script
but when i compile then got an error message as blow
//----------------------------------
syntax error,unexpected identifier,expecting $end
//----------------------------------
here is my script
//----------------------------------
ctrlbutton myButton = {"Button", "OnButton"};//Here is the error line
void InitEffect()
{
}
void PreRenderEffect()
{

}
void PostRenderEffect()
{
}
void MatrixSizeChanged()
{
InitEffect();
}
void OnButton()
{}
//----------------------------------
my OS is windows 7 32 bit
madrix software version is 2.14
could anybody help me thanks

Re: Have a question abount create GUI Control

Posted: Wed Apr 18, 2012 10:28 am
by Fritzsche
Hi chen,

In its simplicity, your script works!

I think you accidentically opened the wrong Script Editor.

MADRIX has 4 different Script Editors. You will need to open the MAS Effect Script Editor. Please select the effect "MAS Script Effect" and open the editor next to "Limit Script Execution" (as shown here: http://www.madrix.com/scripthelp/hidd_gui_elements.html).

Please do not open the Effect Macro Editor.

Thanks!

Re: Have a question abount create GUI Control

Posted: Thu Apr 19, 2012 2:47 am
by chen
OK,I got it.
Thanks for your reply