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
- Select the graphic element configured with the touch or key event.
- In thePropertiespane on theEventstab, selectAdd Command.
- Expand theWindowscategory.
- In theProgramOrFilebox, 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.
- In theParametersbox either:
- Leave theParametersbox blank to launch the .exe file of the program without additional commands. For example, if theProgramOrFilebox contains C:\Program Files\Internet Explorer\iexplorer.exe and theParametersbox is empty, the event command launches Internet Explorer and opens the default Home page.
- Enter commands in theParametersbox to launch the program specified in theProgramOrFilebox with additional commands. For example, type (WebPageName).com to have the event command open the specified page after launching Internet Explorer.
- In theOpenModebox, 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