Identifying if controlled app is up (generic)
Bucky Kid 00
hi, how do I (on custom remote start) detect if controlled app is running on server, and in case it's not running, the app is launched?
I did inherit a code from preset scripts for PotPlayer to own remote which however doesn't work
<layout onlaunch="launch" ...>
events.detect = function () return libs.fs.exists("C:\\Program Files (x86)\\ProgDVB") or libs.fs.exists("C:\\Program Files\\ProgDVB"); end
====> when is this called?
actions.launch = function() device.toast("Opening..."); os.start("%programfiles%/ProgDVB/ProgDvbNet.exe"); os.start("%programfiles(x64)%/ProgDVB/ProgDvbNet.exe"); end
If I start te remote nothing happens if corresponding app is not running, any help appreciated