#21
|
||||
|
||||
@pbm2: script is javascript syntax, so && should be correct but I can't tell if the js engine will abort the evaluation or not after first false. You can easily test yourself with help of alert and debug info shown
Sorry but I still have many open tabs/emails to check/answer so I can't test myself
__________________
JD-Dev & Server-Admin |
#22
|
|||
|
|||
There seems some problem with the interval trigger. I have reinstalled Jdownloader and tested on another pc but no difference.
When there is a script enabled with Interval trigger it will be exeuted on every startup. I have it configured for 60000ms. When Jdownloader is started it should wait 60000ms, but instead the script got executed right after startup. It is not a problem of the script itself because i've tested with a simple script: callAsync(null, "notepad"). Is this normal or just a bug? |
#23
|
|||
|
|||
Problem solved by adding:
sleep(60000); Code:
sleep(60000); if (isDownloadControllerIdle()) { if (!callAPI("extraction", "getQueue").length) { if (!callAPI("linkcrawler", "isCrawling")) { callAsync(null, "cmd", "/c %windir%\\sysnative\\qprocess|findstr \"process1.exe process2.exe\"||shutdown -s -f"); } } } Thanks for all your scripting help mgpai and Jiaz Just one more question: How can i update Jdownloader on startup (with automatic restart) instead of shutdown? I saw this was possible when launching from the command line (java -jar jdownloader.jar), but is this there also an option somewere for the normal (gui) version? Last edited by pbm2; 12.06.2019 at 04:59. |
#24
|
||||
|
||||
Quote:
__________________
JD-Dev & Server-Admin |
#25
|
||||
|
||||
Quote:
__________________
JD-Dev & Server-Admin |
#26
|
|||
|
|||
unchecking "UpdateSettings: Install Updates On Exit" worked for me
|
#27
|
|||
|
|||
After todays update, the Interval trigger does not work anymore. Tested also with clean install. Script never executes, not even when set to 6000ms
|
#28
|
||||
|
||||
@pbm2: sorry, will be fixed with next core update later
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|