Launch different programs from the application

2011-08-18
2011-08-18
  • Andoni Crespo - 2011-08-18

    Pressing one button from my HMI, I would like to launch another application in my windows embedded CPU (adobe, word, ultravnc....)in order to read documents, make remote connections...

    I am trying to do using _ and SysCreateProcess but I am not reaching to any concluding point.

    Could anybody help me, please?

    Thanks in advance!

     
  • TimvH

    TimvH - 2011-08-18

    This is very easy.
    In the property "inputConfiguration" of your button in the HMI (e.g. OnMouseUp), you can select "execute command".
    One of the commands is "execute program on client" (CoDeSys HMI or Target Visualization).
    Now give as parameter the path and name of the program you want to execute.

    E.g. 'notepad.exe'

    PS, don't forget the quotes, otherwise the compiler expects a reference to a string variable.

     
  • Andoni Crespo - 2011-08-18

    I did not know that. I have tested it and works!

    Thank you very much!

     

Log in to post a comment.