JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #641  
Old 14.03.2019, 14:27
RPNet-user RPNet-user is offline
Mega Loader
 
Join Date: Apr 2017
Posts: 69
Default

Quote:
Originally Posted by Jiaz View Post
@PRNet: did you customize the context menu to include those buttons?
There are no options to add buttons in the "user interface" or "advanced settings" or the "menu manager".

never mind i figured it out, i was looking for the literal word button which was nowhere to be found, to me it is just a a press option menu. i already had that option in the right click submenu to "more options" right-click context which i had to make visible when selecting the link(s), the problem was that i had not renamed the "action" to match the "name" from the script. sometimes i think too literal.

thanks

Last edited by RPNet-user; 14.03.2019 at 15:29.
Reply With Quote
  #642  
Old 14.03.2019, 15:09
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,270
Default

Menu Editor -> +(Add) -> Eventscripter Trigger
__________________
JD-Dev & Server-Admin
Reply With Quote
  #643  
Old 14.03.2019, 15:41
RPNet-user RPNet-user is offline
Mega Loader
 
Join Date: Apr 2017
Posts: 69
Default

@mgpai
would you please provide variables for the following:

Name
Size
Hoster
Added Date
Finished Date
Save to
Reply With Quote
  #644  
Old 14.03.2019, 15:46
bobolecoco bobolecoco is offline
JD Alpha
 
Join Date: Aug 2015
Location: France
Posts: 24
Default

Quote:
Originally Posted by Jiaz View Post
You can access the advanced settings via eventscripter as well.
What exactly do you want to achieve?
Well, sometimes, I don't know why, the "Tray icon" option get unticked and JDownloader disappears when I try to minimize it. I have to kill JD's process, restart JD, and check the "Tray icon" option for it to come back to normal.

So, I'd like to create a script that periodically checks if the option is ticked, and ticks it if it's not.

Reply With Quote
  #645  
Old 14.03.2019, 16:23
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,270
Default

@bobolecoco: what os are you using? this should not untick itself, ever.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #646  
Old 14.03.2019, 16:50
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 606
Default

Quote:
Originally Posted by RPNet-user View Post
would you please provide variables for the following: ...
All variables are listed in the script editor:

Code:
Script Editor > Menu > Show/Hide Help
Reply With Quote
  #647  
Old 14.03.2019, 17:44
RPNet-user RPNet-user is offline
Mega Loader
 
Join Date: Apr 2017
Posts: 69
Default

Quote:
Originally Posted by mgpai View Post
All variables are listed in the script editor:

Code:
Script Editor > Menu > Show/Hide Help
I see them, thanks
Reply With Quote
  #648  
Old 14.03.2019, 21:23
RPNet-user RPNet-user is offline
Mega Loader
 
Join Date: Apr 2017
Posts: 69
Default

these are samples for the two "long" variables i added to output to a text, these numbers do no make sense:

getFinishedDate ->1552594451765
getDownloadTime ->7422

adding "string" variables is not a problem only with the "long" variables that require numerical values.

Last edited by RPNet-user; 14.03.2019 at 22:19.
Reply With Quote
  #649  
Old 14.03.2019, 22:33
bobolecoco bobolecoco is offline
JD Alpha
 
Join Date: Aug 2015
Location: France
Posts: 24
Default

Quote:
Originally Posted by Jiaz View Post
@bobolecoco: what os are you using? this should not untick itself, ever.
I'm on Raspbian (Debian for Raspberry Pi).
Reply With Quote
  #650  
Old 15.03.2019, 09:31
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,270
Default

@PRNet-User:
date in timestamp 1552594451765 -> 1552594451(without ms) -> 14.03.2019 - 21:14:11
download time in ms -> 7,4 secs
__________________
JD-Dev & Server-Admin
Reply With Quote
  #651  
Old 15.03.2019, 09:31
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,270
Default

Quote:
Originally Posted by bobolecoco View Post
I'm on Raspbian (Debian for Raspberry Pi).
does this happen randomly or can you reproduce the issue by yourself?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #652  
Old 15.03.2019, 11:46
bobolecoco bobolecoco is offline
JD Alpha
 
Join Date: Aug 2015
Location: France
Posts: 24
Default

Quote:
Originally Posted by Jiaz View Post
does this happen randomly or can you reproduce the issue by yourself?
It happens randomly (and I have the same issue on two different devices).
Reply With Quote
  #653  
Old 15.03.2019, 12:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,270
Default

@bobolecoco:
different os or same os/device-types?
__________________
JD-Dev & Server-Admin
Reply With Quote
  #654  
Old 15.03.2019, 16:44
RPNet-user RPNet-user is offline
Mega Loader
 
Join Date: Apr 2017
Posts: 69
Default

Quote:
Originally Posted by Jiaz View Post
@PRNet-User:
date in timestamp 1552594451765 -> 1552594451(without ms) -> 14.03.2019 - 21:14:11
download time in ms -> 7,4 secs
ok, i see, so it uses a unix/epoch timestamp, is it possible to set the "getFinishedDate" to output in human readable/laymen format like the converted method you provided? eg. 14.03.2019 - 21:14:11.
I will also need to do this for the long var "myFilePath.getSize"
Reply With Quote
  #655  
Old 15.03.2019, 16:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,270
Default

You can use the Javascript Date Object, for example
Quote:
var d = new Date(timestamp);
alert( d.toString() ); // shows current date/time
For file size I'm sure that mgpai might already have written a simple converter in js
__________________
JD-Dev & Server-Admin
Reply With Quote
  #656  
Old 15.03.2019, 17:11
RPNet-user RPNet-user is offline
Mega Loader
 
Join Date: Apr 2017
Posts: 69
Default

Quote:
Originally Posted by Jiaz View Post
You can use the Javascript Date Object, for example


For file size I'm sure that mgpai might already have written a simple converter in js
thanks, that is the same datestamp that i'm using for the output txt, i will add a var to apply for the completed files/links.
I will contact mgpai about the converter.
Reply With Quote
  #657  
Old 16.03.2019, 00:44
bobolecoco bobolecoco is offline
JD Alpha
 
Join Date: Aug 2015
Location: France
Posts: 24
Default

Quote:
Originally Posted by Jiaz View Post
@bobolecoco:
different os or same os/device-types?
A Raspberry Pi 2 with Raspbian GNU/Linux 7 (wheezy) ;
A Raspberry Pi 3 with Raspbian GNU/Linux 8 (jessie).
Reply With Quote
  #658  
Old 18.03.2019, 12:04
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,270
Default

@bobolecoco: can you please stop JDownloader and delete the logs folder. Then wait for error to happen again and then zip the logs folder and send to support@jdownloader.org
__________________
JD-Dev & Server-Admin
Reply With Quote
  #659  
Old 18.03.2019, 19:43
bobolecoco bobolecoco is offline
JD Alpha
 
Join Date: Aug 2015
Location: France
Posts: 24
Default

Quote:
Originally Posted by Jiaz View Post
@bobolecoco: can you please stop JDownloader and delete the logs folder. Then wait for error to happen again and then zip the logs folder and send to support@jdownloader.org
I will try.
But anyway, to come back to my question, is there a way to change a JDownloader's setting using event scripter ?
Reply With Quote
  #660  
Old 19.03.2019, 09:46
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 65,270
Default

@bobolecoco: mgpai should be able to help you with that. but we should find the reason for this behaviour and not try to workaround it

@mgpai: api namespace is 'extensions', method is 'setEnabled', parameters are classname and boolean. you can use list method to list all installed extensions.
__________________
JD-Dev & Server-Admin
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 04:05.
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 - 2019, Jelsoft Enterprises Ltd.