JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 27.03.2023, 02:50
MatthewMMorrow MatthewMMorrow is offline
Registered / Inactive
 
Join Date: Mar 2023
Posts: 1
Default 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 18:29. Reason: copyable url
Reply With Quote
  #2  
Old 27.03.2023, 13:45
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 73,512
Default

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
Spoiler:

A users' JD crashes and the first thing to ask is:
Quote:
Originally Posted by Jiaz View Post
Do you have Nero installed?
Reply With Quote
  #3  
Old 16.04.2023, 13:24
georgegalily georgegalily is offline
Registered / Inactive
 
Join Date: Oct 2018
Posts: 29
Default

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 13:29.
Reply With Quote
  #4  
Old 17.04.2023, 19:25
notice notice is offline
JD Supporter
 
Join Date: Mar 2023
Posts: 505
Default

@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:
if(eventTriggerProps.name != "Save to history" && eventTriggerProps.name != "Save to history (Include unfinished)") return;
Reply With Quote
  #5  
Old 18.04.2023, 15:41
georgegalily georgegalily is offline
Registered / Inactive
 
Join Date: Oct 2018
Posts: 29
Default

Thank you worked well
Reply With Quote
  #6  
Old 18.04.2023, 16:05
notice notice is offline
JD Supporter
 
Join Date: Mar 2023
Posts: 505
Default

Quote:
Originally Posted by georgegalily View Post
Thank you worked well
Thank you very much for the feedback!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:08.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.