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,980
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
101
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
96
Hi All, I'm keep getting double quotes in between selections rather than the beginning and the end. Here's the script and please help to find...
Replies
7
Views
796
Dear guys, I am not a programmer but I can do simple things myself. I'm stuck with the following. if I want to extract a value from my rx3i...
Replies
46
Views
4,746
Back
Top Bottom