JDownloader Community - Appwork GmbH
 

Go Back   JDownloader Community - Appwork GmbH > Deutscher Support > Allgemeine Diskussion
Reply
 
Thread Tools Display Modes
  #1  
Old 03.04.2020, 12:25
Tedolly Tedolly is offline
Giga Loader
 
Join Date: Dec 2015
Posts: 99
Default Clipboard-Inhalt im Script lesen

Gibt es Script-Befehle, mit denen man den Inhalt des Clipboards in einen String speichern kann?
Reply With Quote
  #2  
Old 03.04.2020, 13:06
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

sorry I don't see a trigger for clipboard, nor access within script help either. Not sure that we would add such a function, this is really up to Appwork. Please wait for response from coalado or jiaz
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #3  
Old 03.04.2020, 14:15
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,553
Default

Quote:
Originally Posted by Tedolly View Post
Gibt es Script-Befehle, mit denen man den Inhalt des Clipboards in einen String speichern kann?
Trigger: New Crawler Job
Method: job.text
Reply With Quote
  #4  
Old 03.04.2020, 14:23
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

@mgpai
does that work 100% time or just for crawlers (decrypter/linkcrawlerrule)? I assumed it wouldn't cover hoster link.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #5  
Old 03.04.2020, 16:48
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 1,553
Default

Quote:
Originally Posted by raztoki View Post
does that work 100% time or just for crawlers (decrypter/linkcrawlerrule)? I assumed it wouldn't cover hoster link.
The 'text' property will store any text passed to JD from any source.

Other object methods can be used to fitler by origin, source url etc., depending on what the user wants to acheive. For e.g. if the user wants to store/use only the text which has been copied to the clipboard, the following condition can be used:

Code:
job.origin == "CLIPBOARD"
Reply With Quote
  #6  
Old 03.04.2020, 16:55
pspzockerscene's Avatar
pspzockerscene pspzockerscene is offline
Community Manager
 
Join Date: Mar 2009
Location: Deutschland
Posts: 71,117
Default

@Tedolly
Bitte mgpai's Posts beachten.

Schönes Wochenende!

@mgpai
Thx!
Have a nice weekend!

Grüße, psp
__________________
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
  #7  
Old 03.04.2020, 17:47
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

thx

Yah I gathered about the object methods, though assumed he wanted access to the entire clipboard body regardless of how it was triggered (decrypter(crawler)/hoster)
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
  #8  
Old 03.04.2020, 17:57
Tedolly Tedolly is offline
Giga Loader
 
Join Date: Dec 2015
Posts: 99
Default

Quote:
Originally Posted by raztoki View Post
thx

Yah I gathered about the object methods, though assumed he wanted access to the entire clipboard body regardless of how it was triggered (decrypter(crawler)/hoster)
Correct.
I want monitor the clipboard for filenames (I copy this name to CB).
Then I want save this filename in a string.
If then follows an URL (I copy this name to CB), then it was listed in the link-collector. This item I want rename in a special way. To do this, I need the earlier founded filename in the clipboard.

Can anyone understand my wonderfull english?
Reply With Quote
  #9  
Old 03.04.2020, 18:57
raztoki's Avatar
raztoki raztoki is offline
English Supporter
 
Join Date: Apr 2010
Location: Australia
Posts: 17,614
Default

@tedolly
better off just changing the plugin source code, adapt it to your needs. way less messy.
__________________
raztoki @ jDownloader reporter/developer
http://svn.jdownloader.org/users/170

Don't fight the system, use it to your advantage. :]
Reply With Quote
Reply


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 13:37.
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.