Scripting Unleashed - Script Editor

Top  Previous  Next

Before learning about actual command names & their usage, here's an introduction to MMB objects that contain script editors:

Text Object

 

TextObjectScriptEditor

 

Button Object

 

ButtonObjectScriptEditor

 

ListBox Object

 

 

ListBoxObjectScriptEditor

 

Script Object

 

ScriptObjectScriptEditor

 

HotSpot Object

 

 

HotSpotObjectScriptEditor

 

 

And now, mr. Editor himself:

ScriptEditor

 

Here are explanations of Script Editor options:

 

Option

Explanation

Editor Switch

Switches view between Small Editor and Advanced Editor (recommended while it uses syntax highlighting and script wizard).

Copy/Paste

Clipboard commands for script copy/pasting

Script Wizard

Opens list of available MMB script commands with explanations, giving ability to specify parameters. When selection is confirmed, script line will be inserted into editor.

Open/Save

Enables opening & saving of MMB scripts using TXT and RTF files.

Mouse Up & Down Script

This switch opens separate script windows for actions that happen either on

Mouse Up - when user releases mouse button
Mouse Down - when user presses mouse button

By default, you enter code in Mouse Up script.

 

Don't forget to try: right-click menu in the script editor !

ScriptEditorRightClickMenu

 

As you can see - it's an advanced menu, not containing just cut/copy/paste commands. Here you can quickly reach script commands, save & load scripts.

Another handy feature of Script Editor is ability to edit written commands through Script Wizard dialog box by double-clicking on commands in Editor:

 

DoubleClickEditor

 

Right ! Now you know where scripts must be written and where you'll spend numerous nights making project of your life - let's take care of the script content now !