Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

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.