Working with Scripts

 

You can execute a script command from your program.

 

 

 

Script_Read_Line

 

Execute a script command

 

Script_Read_File

 

Read and execute a script file

 

This is very handy if, for example, you want to assign a hot key to script command, you can use the line:

 

Example: in morpho.cpp

 

// --- default key mapping ---

Script_Read_Line( "key: \"q\"  map \"Morpho: * compute 1\"" ) ;