2.5.1.16 From Worksheet Cell

Executable LabTalk script can be inserted worksheet cells, including cells in column label rows with the following syntax: labtalk://;Script DisplayedText

The DisplayedText is optional. Without it, the script itself will show.

There are two ways to edit it again:

  • Single click it on the cell and hold the mouse for more than 2 seconds before releasing.
  • Alt + double click
  • Choose Edit: Edit Mode (Ctrl+Alt+B) menu. After editing, need to select the menu again to exit the edit mode.


Examples

  1. Add a single line script without space. Click on it will add a new column in current sheet.
    labtalk://;wks.ncols+=1
  2. Add a single line text with space. Click it will open x-function based smooth dialog.
    labtalk://;"smooth -d" Open Smooth Dialog
  3. Run [open] section of file.ogs file. Click it will open File: Open dialog
    labtalk://;run.section(file.ogs, open) Open...


Please visit Inserting Executable LabTalk Script for more information.