#1
|
||||
|
||||
![]()
@mgpai
(or if somebody else can help?) Some time ago you created below script for me which is extremely usefull! Thanks again! Would it be possible, to create another script, which does the same for Speed Limit? It should work as follows: When I check the control box Settings->Speed Limit, the script should automatically uncheck it after e.g. 600 seconds. Thanks in advance for any efforts taken! Code:
/* disable clipboard monitoring trigger : interval enable 'synchronous execution of script' in the top panel */ var seconds = 600; var clipboardMonitored = function() { return callAPI("config", "get", "org.jdownloader.settings.GraphicalUserInterfaceSettings", null, "ClipboardMonitored"); } if (clipboardMonitored()) { sleep(seconds * 1000); callAPI("config", "set", "org.jdownloader.settings.GraphicalUserInterfaceSettings", null, "ClipboardMonitored", false); //alert("clipboard moinitoring disabled"); //playWavAudio(JD_HOME + "/themes/standard/org/jdownloader/sounds/captcha.wav"); } |
#2
|
|||
|
|||
![]() Code:
/* disable speed limit trigger : interval enable 'synchronous execution of script' in the top panel */ var seconds = 600; var interfaceName = "org.jdownloader.settings.GeneralSettings"; var key = "DownloadSpeedLimitEnabled"; var speedLimitEnabled = callAPI("config", "get", interfaceName, null, key); if (speedLimitEnabled) { sleep(seconds * 1000); callAPI("config", "set", interfaceName, null, key, false); } |
#3
|
||||
|
||||
![]()
@mgpai: thanks for your help
![]()
__________________
JD-Dev & Server-Admin |
#4
|
||||
|
||||
![]() Quote:
![]() Thank you very, very, much! |
![]() |
Thread Tools | |
Display Modes | |
|
|