Although you can run L-studio by double-clicking its icon, it is possible to run it from the command line. There are several options that can be set when running L-studio from the command line; they are useful if you want to run L-studio from another application, such as a Powerpoint presentation. These options can be given in any order:
Command-line option | Effect |
---|---|
-spl | Do not display the splash screen when starting L-studio. |
-w width height | The initial L-studio window will be width pixels wide and height pixels high. |
-wp x y | The left side of the L-studio window will be x pixels from the left side of the screen, and the top of the window will be y pixels from the top of the screen. |
-wr rwidth rheight | The width of the initial L-studio window will be rwidth times the width of the screen, and its height will be rheight times the height of the screen. For example, -wr 1 1 will make the initial window the full size of the screen, while -wr 0.5 0.5 will make the initial window half the height and half the width of the screen. |
-wpr xpos ypos | The left side of the L-studio window will be a fraction of xpos from the left side of the screen, and the top of the window will be a fraction of ypos from the top of the screen. For instance, -wpr 0 0 will place the L-studio window at the top left corner of the screen, while -wpr 0.5 0.5 will place the top left corner of the L-studio window in the middle of the screen. |
-demo | Runs L-studio in demo mode. In this mode, L-studio will never prompt if you want to save an object when closing it, nor will you be asked to confirm quitting L-studio. This global behaviour is similar to the per-object behaviour of the demo mode parameter in the LSspecifications file. |
directory | Giving a directory on the command line specifies the initial object. This object is loaded when L-studio starts. Specifying an initial object implies -spl. |
You can also run cpfg and lpfg from the command line. Most of the options available are described in the CPFG User's Manual and the LPFG User's Manual. There are also some options specific to running these programs in Windows, without L-studio:
Command-line option | Effect |
---|---|
-w width height | The window positioning options work in exactly the same way in cpfg and lpfg as in L-studio. |
-wp x y | |
-wr rwidth rheight | |
-wpr xpos ypos | |
-wnm | No message window. This option tells cpfg/lpfg not to display the message log window. |
-wnb | No border. This option runs cpfg/lpfg without the title bar and border. It is useful if you want the simulator to look like part of a presentation, rather than an external program. |
In addition, lpfg needs to know the path to its binaries and include files. (This is usually in the lpfg directory in your L-studio installation.) When running from L-studio, this information is provided automatically, but if you run lpfg from the command line, you have to provide it yourself; either in the LPFGPATH environment variable, or through a command line option:
-lp path | Provides the path to lpfg's binaries and include files. This will typically be in the lpfg folder in your L-studio installation, for example at C:\Program Files\L-studio\lpfg. |