Ok, I understand.
I use a USB switcher and when switching a relay on it, I just wait for the process, and then call a function in AS script (check the status and display the results).
Now my solution a setInterval() process.
It's working, but not too elegant.
I was think maybe use some function like Shell.runandwait()-for external processes, or some onEndPrinting() in printing.
Anyway, Thank You to Your answer!
|