View Single Post
  #1368  
Old 17.05.2020, 18:10
MrBojangles_ MrBojangles_ is offline
Junior Loader
 
Join Date: May 2020
Posts: 13
Default

Hi I've got a couple things I'm trying to sort out in this script. One thing I've pretty much done but I haven't got a clue how to do the second thing.

1: This script works fine, until after it runs test.exe, when that task completes the downloads don't start again...I don't understand why.

2: I want to be able to measure the interval between occurrences of the script. For example take the system time, save as a global variable, then compare that with system time the next time a download goes offline.

Hope someone can help!

Code:
// Script to stop, reset links, run captcha macro, restart downloads
// Trigger: "A Download Stopped"
var finalStatus = link.getFinalLinkStatus();
disablePermissionChecks();
if (finalStatus == "OFFLINE") {
    stopDownloads();
    link.reset();
    callSync("c:\\test.exe");
    startDownloads();
}
Reply With Quote