Announcement

Collapse
No announcement yet.

How to control possible errors?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to control possible errors?

    Hi everybody

    I want to show appropriate message if a media didn't play in user's operating system, for example I want to show smth such as "Your operating system couldn't find appropriate program to play this video, please install KMP".

    how could I do this in script?

    thanks in advance

  • #2
    As long as the application returns an error/exit code, you can check which code was given. Usually, anything different to zero means that there was some kind of error. You can check the exit code in both Shell.Execute() and File.Run() actions.

    Ulrich

    Comment


    • #3
      I guess you meant this text: https://www.indigorose.com/webhelp/a...ur_Scripts.htm

      Comment


      • #4
        No, I meant what I wrote. You asked for a way of checking if a program executed correctly, which is different to checking for syntax errors, functional errors, or debug actions. Refer to the documentation of the actions I mentioned, and you will see that there is a parameter named WaitForReturn, which allows you to retrieve the return code of the program you started. The Application.GetLastError() action will give you something completely different.

        Ulrich

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎