Quote:
Originally Posted by djmakinera
But how fast can turn on or off Regex when searching for different names? No use of advanced settings every time
|
"Downloadlist Bottombar Button Pressed" + Eventscripter + keyboard shortcut
Keyboard shortcut is very fast!
Quote:
Originally Posted by Jiaz
You can also use eventscripter and create button to toggle this option.
|
Done.
Script example:
Code:
// Filterregex on/off
// Trigger: Downloadlist Bottombar Button Pressed
// EventTriggername: Filterregex
if (name == "Filterregex") {
var filterregex = callAPI("config", "get", "org.jdownloader.settings.GeneralSettings", null, "filterregex");
if (filterregex == false) {
callAPI("config", "set", "org.jdownloader.settings.GeneralSettings", null, "filterregex", true);
} else {
callAPI("config", "set", "org.jdownloader.settings.GeneralSettings", null, "filterregex", false);
}
}