#2261
|
|||
|
|||
![]() Quote:
![]() It is indeed difficult to create a one-size-fits-all script for edge cases. |
#2262
|
|||
|
|||
![]()
You will have to use external programs which support CLI and call it in eventscripter. If you need help adding them to a script, post the terminal commands which you are currently using.
|
#2263
|
||||
|
||||
![]() Quote:
![]() Should have searched there in the first place ![]() Yes, it would be nice to have another button (another script) which exports the entire list. And a few more questions, if I may... 1. Would it be possible to use below format instead? 2022-06-09-16-09-30-868.tsv 2. I believe, this Code:
var file = JD_HOME + "/" So, I could add a fixed path instead of JD_HOME, right? 3. If this is not too much, could you please add code to create some sort of popup confirmation about the file being written successfully. 4. Or would it even be possible to jump to the file automatically? Thanks for any efforts taken in advance! Last edited by StefanM; 09.06.2022 at 19:59. |
#2264
|
||||
|
||||
![]()
I'm dreaming about that too :D
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#2265
|
|||
|
|||
![]()
|
#2266
|
||||
|
||||
![]()
@mgpai
Do you see any chance to create a script (delays at least for LinkGrabber) now that Jiaz mentioned use of packagaizer hook here to add sleep/wait in linkcrawler.? Quote:
Quote:
|
#2267
|
||||
|
||||
![]()
@mgpai or anyone who knows...
Where can I find a list of JD-specific terms to use in Event Scripter-scripts? Examples:
Just tried to figure out from working scripts... Right now I would like to know below terms (taken from Edit Menu Node for Copy Information button): (if not already included in the above list)
Thanks for any efforts taken... ![]() |
#2268
|
|||
|
|||
![]() Quote:
Quote:
Quote:
You can test it yourself. No extensive code as such. Create a new script with the following and use it with "Packagizer Hook". (You can restart to kill the script thread if JD stalls) Code:
sleep(3000); // Delay in milliseconds Wait for @Jiaz to respond, in case he meant to use it differently. |
#2269
|
||||
|
||||
![]()
@StefanM
I'd recommend using a system-wide solution to limit requests to certain hosts. Looks like doing that via EventScripter will be complicated. I do not have a hint for such applications atm. but I'm quite sure such applications do exist.
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA |
#2270
|
||||
|
||||
![]()
You'll find a list of all available Objects/Methods in the helper window above the source editor.
__________________
JD-Dev & Server-Admin |
#2271
|
||||
|
||||
![]() Quote:
and... ... what does this (just an example) mean? Code:
var myString = myCrawlerJob.getText() What I was looking for, is a list, that I could use to search for strings to be used. Even if we look at a simple things such as the program folder... If I wouldn't know, what JD_HOME stands for, I would search for
This one I would have found, but others I would not. Anyway, as you mentioned that these scripts are only meant for developers, who are familiar with Java... Those developers would probably have it easier... Will study the list and learn how to find things... The most important thing is: After 12 years of using JD, you guys finally made me use Event Scripter - first time in 12 years... ![]() |
#2272
|
||||
|
||||
![]() Quote:
The scripts are Javascript syntax.
__________________
JD-Dev & Server-Admin |
#2273
|
||||
|
||||
![]()
When you add links to JDownloader a CrawlerJob contains the links and other information and .getText is a way to access that
__________________
JD-Dev & Server-Admin |
#2274
|
||||
|
||||
![]() Quote:
Quote:
__________________
JD-Dev & Server-Admin |
#2275
|
||||
|
||||
![]() Quote:
I know. And maybe I will learn Javascript syntax some day. In the meantime I learn by copying, pasting, trial, and error... |
#2276
|
||||
|
||||
![]() Quote:
But I just mentioned that example to point out that from that list in Event Scripter's 'Help' you cannot really see, what things mean... But maybe it's clear for somebody familiar with Javascript... |
#2277
|
||||
|
||||
![]() Quote:
those placeholder is formatted filesize in different units
__________________
JD-Dev & Server-Admin |
#2278
|
||||
|
||||
![]()
Yes, as I said, I would have found this one by searching for different search strings, with one of them being 'installation directory'.
Just want to try to make you aware of the problems, a user can get encountered with. To give you another example: https://support.jdownloader.org/Know...to-jdownloader It is a great help. But it was written from the point of view of somebody (psp), who already had Event Scripter installed. What would the user do? They would follow the instructions to find out that Event Scripter Trigger from here: ![]() is not available. Why is it not available? I had to ask this myself! One important information is missing in that article: Before you start, you have to install Event Scripter extension... This is just another example for what I tried to explain before: For any developer it is more or less difficult, to put themselves in the shoes of a user. |
#2279
|
||||
|
||||
![]()
@StefanM
at the beginning of https://support.jdownloader.org/Know...to-jdownloader Quote:
__________________
JD-Dev & Server-Admin |
#2280
|
||||
|
||||
![]() Quote:
Why would you read the "Add custom EventScripter buttons" article first without even knowing what the EventScripter is? I do not see any need to adjust the article you've linked. Instead, I updated our "Uninstall extensions" Article which now also covers the installation of extensions: https://support.jdownloader.org/Know...all-extensions I then cross-linked that in the "What is the EventScripter" Article: https://support.jdownloader.org/Know...event-scripter ...going by your logic we'd have to back-link every article which is part of a specific category. Sorry that makes no sense to me. If you're viewing an article and you're lost/need more info, just go to the root of the category and check out the other articles. In case of the EventScripter that would be here: https://support.jdownloader.org/Know...event-scripter Quote:
Don't get me wrong I know it is hard to get the view of our users but really why would you add an EventScripter trigger: - Without knowing what the EventScripter is --> Without then at least searching for "EventScripter" in our knowledgebase/forum Those articles are not- and will never be perfect but in my opinion most of them are understandable although I have to admit in the past we didn't get a lot of feedback about them (neither positive nor negative).
__________________
JD Supporter, Plugin Dev. & Community Manager Erste Schritte & Tutorials || JDownloader 2 Setup Download ----------------------------------- On Vacation / Im Urlaub Start: 2023-12-09 End: TBA Last edited by pspzockerscene; 10.06.2022 at 18:54. Reason: Fixed typos |
![]() |
Thread Tools | |
Display Modes | |
|
|