#1
|
|||
|
|||
problem with even script Sound notification - Finished downloads
Hi,
initially i was looking hor how to play a sound after a download is finished. I found this thread from 2015 with a script for the event scripter: https://board.jdownloader.org/showthread.php?t=65410 the script is Code:
playWavAudio(myString/*myFilePathOrUrl*/);/*Play a Wav Audio file*/ /* Example: */ playWavAudio(JD_HOME+"/themes/standard/org/jdownloader/sounds/captcha.wav"); Code:
playWavAudio(myString/*C:\Windows\Media\Ring01.wav*/);/*Play a Wav Audio file*/ /* Example: */ playWavAudio(JD_HOME+"/themes/standard/org/jdownloader/sounds/captcha.wav"); Code:
ReferenceError: "myString" is not defined. (#1) Code:
net.sourceforge.htmlunit.corejs.javascript.EcmaError: ReferenceError: "myString" is not defined. (#1) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3629) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3613) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3683) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1690) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1622) at script(:1) at net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105) at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:411) at org.jdownloader.scripting.JSHtmlUnitPermissionRestricter$SandboxContextFactory.doTopCall(JSHtmlUnitPermissionRestricter.java:134) at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3057) at net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.exec(InterpretedFunction.java:115) at net.sourceforge.htmlunit.corejs.javascript.Context.evaluateString(Context.java:1212) at org.jdownloader.extensions.eventscripter.ScriptThread.evalUNtrusted(ScriptThread.java:318) at org.jdownloader.extensions.eventscripter.ScriptThread.executeScipt(ScriptThread.java:180) at org.jdownloader.extensions.eventscripter.ScriptThread.run(ScriptThread.java:160) Can you tell me what I am doing wrong? Thank you and greetings Last edited by raztoki; 13.08.2021 at 11:27. |
#2
|
||||
|
||||
'myString' ? remove the first line (complete) as you trigger it twice 'playwavaudio' and define JD_HOME unless thats system wide variable/reference
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#3
|
|||
|
|||
Hello Raztoki,
and thank you very much for your very quick reply. This was most helpful. I removed the first line and now it is working just fine. Again, thank you very much for your help! Greetings Heiner |
#4
|
||||
|
||||
@mgpai: Thanks for your fast help
__________________
JD-Dev & Server-Admin |
Thread Tools | |
Display Modes | |
|
|