StartProgram in script

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...
0
Replies
2,420
Views
Hello everyone. On my current job, I have to copy the program of an old PLC to a new one, but I only have a transcript of the original program...
9
Replies
510
Views
I have a TP900 that is connected to a PC, we use it to read out CSV files stored on the PC to populate recipe data. Occasionally and for no...
0
Replies
311
Views
Hello, I am trying to bind a script to a button, that copies a .csv file from my project into an usb-stick, but I can't make it work. This is what...
0
Replies
951
Views
I know I have done this in the past, but now i cannot find an old app that has it. Basically I navigate it to a flow meters web page, then copy...
2
Replies
587
Views
Top