Have a question abount create GUI Control

Write here what nice effects or shows you have done with MADRIX or ask other users.

Moderator: MADRIX Team

Locked
chen
Posts: 8
Joined: Wed Apr 18, 2012 4:03 am

Have a question abount create GUI Control

Post 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
Fritzsche
Support
Support
Posts: 734
Joined: Mon Oct 05, 2009 5:26 pm
Contact:

Re: Have a question abount create GUI Control

Post 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!
chen
Posts: 8
Joined: Wed Apr 18, 2012 4:03 am

Re: Have a question abount create GUI Control

Post by chen »

OK,I got it.
Thanks for your reply
Locked