#1
|
|||
|
|||
Event Scripter and Typescript starter project
Hi everyone, I've been using a JDownloader for a while now. I've just begun exploring Event Scripter and wanted to make the process easier on myself by referencing an external library built in Typescript. That way I could use a different script editor and strong types for more robust development.
If you want to give it a try, you can download the files on GitHub. The README.md should have enough details to get started if you're familiar with Typescript already. The repository is at github.com/matthewmmorrow/jdownloader-typescript The repository contains some examples such as saving history and using it to prevent duplicate downloads. Last edited by notice; 05.04.2023 at 17:29. Reason: copyable url |
#2
|
||||
|
||||
Thanks for your contribution.
I recommend also posting this information in the EventScripter thread: https://board.jdownloader.org/showthread.php?t=70525
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#3
|
|||
|
|||
Hello everyone, I appreciate your hard work and effort.
I tried to use the "saving history" thing I used the scripts and they are not working, other than the first warnning for the jdownloader.js and the event excution I done steps: I compiled the jdownloader.js put it in jdownloader directory In the event scripter: Added a script named "SaveHistoryContext" then triggered by Downloadlist Contextmenu Button Pressed + in the edit typed: require("U:\\JDownloader v2.0\\jdownloader.js") jdownloader.saveHistoryContextMenuEvent(); Then checked the script box Then in the downloadlist menu added action for EventScripter Trigger and named it "SaveHistoryContext" However when I right click a finished package & pressed "SaveHistoryContext" nothing happen, no History folder created in the jd home, I tried creating the History folder and nothing is created inside it Am I missing something Last edited by georgegalily; 16.04.2023 at 12:29. |
#4
|
|||
|
|||
@georgegalily: according to the script,see github.com/matthewmmorrow/jdownloader-typescript/blob/main/src/saveHistory.ts, the trigger must be named correctly (as specified in script)
Quote:
|
#5
|
|||
|
|||
Thank you worked well
|
#6
|
|||
|
|||
Thank you very much for the feedback!
|
Thread Tools | |
Display Modes | |
|
|