Add an event command to open a program or file

Add an event command to open a program, such as Windows Explorer or a file such as a text file. The event command opens the program or file on the Emulator or a View 5000 Client of a project configured for a View 5000 Server HMI device. Files open using the default application for the file type. PanelView 5000 HMI devices do not support opening programs and files.
Prerequisites
  • Create an event to trigger the command:
    • Touch press
      . Occurs when touching the item on the screen that is configured with the event.
    • Touch release
      . Occurs when releasing the item on the screen that is configured with the event.
    • Key press
      . Occurs when pressing the specified key.
    • Key release
      . Occurs when releasing the specified key.
To add an event command to open a program or file
  1. Select the graphic element configured with the touch or key event.
  2. In the
    Properties
    pane on the
    Events
    tab, select
    Add Command
    .
  3. Expand the
    Windows
    category.
  4. In the
    ProgramOrFile
    box, browse to select the program or file to open.
    TIP:
    If manually entering the name of the file to open, include the full path and file extension. The file extension determines the program that opens the file.
  5. In the
    Parameters
    box either:
    • Leave the
      Parameters
      box blank to launch the .exe file of the program without additional commands. For example, if the
      ProgramOrFile
      box contains C:\Program Files\Internet Explorer\iexplorer.exe and the
      Parameters
      box is empty, the event command launches Internet Explorer and opens the default Home page.
    • Enter commands in the
      Parameters
      box to launch the program specified in the
      ProgramOrFile
      box with additional commands. For example, type (WebPageName).com to have the event command open the specified page after launching Internet Explorer.
  6. In the
    OpenMode
    box, select the mode of the window in which the program or file opens:
    • Normal window
      -- The program or file opens in a default size window.
    • Minimized
      -- The program or file opens in a minimized window.
    • Maximized
      -- The program or file opens in a maximized window.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal