In this case the hidden script with the label "_date" is called and executed. ![]() ![]() The sub command is a special command to call a script inside the same script file. The script with the label "date" will be executed directly. Now run the script load "date.xys", "date". The popup menu will show only two of the four contained scripts. To hide a script simply prefix an underscore to the caption or label (a hidden script does not need a caption anyway).įor example, create a script file "date.xys" in application data path with the following contents: // this is in script file "date.xys" Hidden scripts can be executed but are not shown in the script file's popup menu. If the above is saved to a file called "test.xys" in application data path then the following command will directly bring you to the System folder: load "test.xys", "system". For example: // some little test scripts, using labels The label is attached to the caption, separated by " : " (space-colon-space). ![]() Script Files for the Advanced Labelsīy using labels you can execute a script inside a file directly, avoiding the popup menu. You will get an idea of the potential of scripting by now. The existence of a command load, of course, means that one script file can load another.
0 Comments
Leave a Reply. |