View Single Post
  #1514  
Old 19.08.2020, 11:58
Dockel Dockel is offline
Zetta Loader
 
Join Date: Feb 2020
Posts: 193
Default

Quote:
Just use another sound file for that - as you can see the script contains the path to the file which will be played
Alright. But I cannot get it working with such (an error message appears):

Code:
//Play sound when download finished
//Trigger: A Download Stopped

if (link.finished) {
    var myComment = "#playsoundwhenfinished#";
    //var myWavFile = JD_HOME + "/themes/standard/org/jdownloader/sounds/captcha.wav"; 
    var myWavFile = JD_HOME + "I:\Eigene Dateien\Sounds - Audio\Klšnge\CONGRATS.WAV"; 
    var comment = link.comment || "";

    if (comment.indexOf(myComment) > -1) {
        playWavAudio(myWavFile);
        link.comment = comment.replace(myComment, "");
    }
}
Thank you very much for the rewritten scripts!

Quote:
//Trigger : Downloadlist Contextmenu Button Pressed AND/OR Linkgrabber Contextmenu Button Pressed
How can I use both of them at the same time? Add the same script twice?

Sorry, I guess, I made a mistake, no sound.









Quote:
If you need any help configuring the script, feel free to find me in chat.
Thank you very much!
__________________
Aktuelles Windows

Last edited by Dockel; 19.08.2020 at 12:02.
Reply With Quote