StartProgram in script

Tanke

Member
Join Date
Sep 2012
Location
Albertslund
Posts
4
Hi

I need to run an application when my MP377 panel start up. I have a script that is triggered by the system event 140000 but it is the script that should run the application that fails.

I have tested the "StartProgram" on a push button and there it works fine with the following input.
StartProgram
Program name: \flash\vnc\winvnc.exe
Program parameters:
Display mode: Normal
Wait for program to end: No

In the scrip I have written the same as follows
StartProgram ("\flash\vnc\winvnc.exe","",hmiShowNormal, hmiNo)

But when I compile the script I get an error because I haven't put in any program parameters.

I can't really figure out where I am going wrong.

Hope you can help me
 
I found the solution myself.

When StartProgram is used the it shall be without the parenthesis so it works with.
StartProgram "\flash\vnc\winvnc.exe","",hmiShowNormal, hmiNo
 

Similar Topics

Hi there! I have a problem with StartProgram command in Flex. I made an application in Borland C++ builder what works with files from the current...
Replies
0
Views
1,991
Hello. I have a db which is 1000 INT, and this db is represented in WinCC as a raw data type set of 5x 400 Bytes. This set is read with a script...
Replies
1
Views
79
Hello Experts I am working on a project with WinCC Unified v16 PC system and want to create an option on the screen to export logs to the...
Replies
0
Views
69
Hello, I am learning to create shapes and VB Scripts in HMIWeb Display Builder. I wanted to change color of my rounded rectangle by script. I...
Replies
0
Views
120
Hello, I have a quick question. I have been using scripts to change the color of buttons. The reason, I am usually using multiple hmiruntime.tags...
Replies
1
Views
122
Back
Top Bottom