JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 21.09.2010, 03:59
drbits's Avatar
drbits drbits is offline
JD English Support (inactive)
 
Join Date: Sep 2009
Location: Physically in Los Angeles, CA, USA
Posts: 4,434
Default Useful Scripts from Users

This thread is a place to post your scripts that are useful with JDownloader.
Do not post reconnection scripts here. Use the Reconnect Forum: Useful Reconnection Scripts from Users.

You must explain what the script is for and how to use it.
Please remember to post any requirements (OS, interpreter, and so on).

If the script is long, put it in a Spoiler (Go Advanced).

This thread is only for scripts that work well.
Do not thank the authors here, this is not a discussion thread.

Disclaimer: These scripts are not tested by JD staff, but other members have posted the scripts here for your use. There is no guarantee that the script will work for you. JDownloader.org takes no responsibility for any damage that might be caused by running a script.

Last edited by drbits; 09.04.2011 at 11:03.
Reply With Quote
  #2  
Old 27.09.2010, 09:11
CHRONOMASTER
Guest
 
Posts: n/a
Default

Captcha Sound Alert for JDownloader [AutoIt - Script Code] (Updated 9/20/2010)


What this script does is it creates a sound alert that repeats every 5 seconds
until the alert is canceled when a captcha window in JDownloader pops up.

Requirements:
  • AutoIt v3
  • Windows XP/Vista/7

v1.1 (9/20/2010)
  • Added $Title variable to "Settings" to help non-English JDownloader users set captcha window detection.
  • Changed the default $SoundFile variable to a audio file available to all XP/Vista/7 users.

Large script, press "show" below.
Spoiler:
Code:
#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.6.1
 Author:         CRONOMASTER

 Script Function:
    Captcha Sound Alert for JDownloader

 Script Version: 1.1

 Script Date: 9/20/2010

#ce ----------------------------------------------------------------------------



; ----------- Settings ------------- ;

; Set Captcha Window Title
; English Example: "fileserve.com: Please enter" -> "Please enter"
; Italian Example: "fileserve.com: Inserire" -> "Inserire"
; Spanish Example: "fileserve.com: Por favor ingresar" -> "Por favor ingresar"
; German  Example: "fileserve.com: Bitte eingeben!" -> "Bitte eingeben!"

; Already set for English. Don't add the Colon and Space in front as it will be added automatically. 
$Title = "Please enter"  

; Set the sound intervals in milliseconds (1000 milliseconds = 1 second)
$SoundDelay = 5000

; Set path of the audio file (Example "C:\Users\USERNAME\Music\Somefile.wav")
$SoundFile = @WindowsDir & "\media\notify.wav"

; Do not change this unless needed
$DetectWindow = "[TITLE:: " & $Title & "; CLASS:SunAwtDialog]"

; When enabled it displays the current(not realtime) line number and command in the system tray icon tooltip.
$Debug = False

; -------- Settings  End ----------- ;



#include <ButtonConstants.au3>
#include <GUIButton.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

TraySetToolTip("Captcha Sound Alert for JDownloader")
If $Debug = True Then Opt("TrayIconDebug",1)
Opt("TrayAutoPause",0)
Opt("WinTitleMatchMode",2)

If Not FileExists($SoundFile) Then
    MsgBox(262144,"Script Error - Captcha Sound Alert for JDownloader", 'The file "' & $SoundFile & '" was not found.' & @CRLF & 'Please set a valid audio file in the script.')
    Exit
EndIf

While 1
    While 1
        If WinExists($DetectWindow) Then
            ExitLoop
        Else
            Sleep(250)
        EndIf
    WEnd

    $Timer = TimerInit()
    SoundPlay($SoundFile)

    $FormMain = GUICreate("Captcha Sound Alert for JDownloader", 291, 91, 367, 575, BitOR($WS_SYSMENU,$WS_CAPTION,$WS_POPUP,$WS_POPUPWINDOW,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_TOOLWINDOW,$WS_EX_TOPMOST,$WS_EX_WINDOWEDGE))
    $ButtonOK = GUICtrlCreateButton("OK", 96, 56, 97, 25, $WS_GROUP)
    $LabelMessage = GUICtrlCreateLabel("Press OK to stop this alert.", 24, 16, 244, 27)
    GUICtrlSetFont(-1, 15, 400, 0, "Arial")
    GUICtrlSetState($ButtonOK, $GUI_FOCUS)
    GUISetState(@SW_SHOW)

    While 1
        $Msg = GUIGetMsg()

        Switch $Msg
            Case $GUI_EVENT_CLOSE
                Exit
            Case $ButtonOK
                ExitLoop
        EndSwitch

        If TimerDiff($Timer) >= $SoundDelay Then
            SoundPlay($SoundFile)
            $Timer = TimerInit()
        EndIf
    WEnd
    GUIDelete()
    Sleep(60000)
WEnd


Post replies here: http://board.jdownloader.org/showthread.php?t=20714

Last edited by CHRONOMASTER; 18.03.2011 at 07:44.
Reply With Quote
  #3  
Old 02.11.2010, 17:28
jdlbot
Guest
 
Posts: n/a
Default

jDlBot! RSS feed automatic link loader

Grab it here:
Code:
**External links are only visible to Support Staff**
Check out the source code and README here:
Code:
**External links are only visible to Support Staff**
If you have problems, check the wiki here:
Code:
**External links are only visible to Support Staff**
Please feel free to open issues, send patches or give feedback/suggestions.

Post replies here: http://board.jdownloader.org/showthread.php?p=110953
Reply With Quote
Old 18.02.2011, 06:46
rohitjain00007
Message deleted by Think3r. Reason: Spam
Old 19.02.2011, 12:44
totalfreeloader
Message deleted by Think3r. Reason: Spam
  #4  
Old 04.03.2011, 19:53
Gweilo's Avatar
Gweilo Gweilo is offline
JD Legend
 
Join Date: Mar 2009
Posts: 725
Default

When a forum displays things like
Code:
**External links are only visible to Support Staff**
you can use "full urls as link text" bookmarklet:

Code:
javascript:(function(){var i,c,x,h; for(i=0;x=document.links[i];++i) { h=x.href; x.title+=" " + x.innerHTML; while(c=x.firstChild)x.removeChild(c); x.appendChild(document.createTextNode(h)); } })()
Just create a bookmark with this code as the address, then clicking on the bookmark will display complete links instead of whatever text on the webpage.

From
Code:
**External links are only visible to Support Staff**

Last edited by Gweilo; 05.03.2011 at 03:50.
Reply With Quote
  #5  
Old 04.03.2011, 20:47
Think3r's Avatar
Think3r Think3r is offline
Community Manager & Admin (inaktiv)
 
Join Date: Apr 2009
Posts: 3,703
Default

Please do not post things like "thank you", these posts will be deleted!
Greetz
__________________
Bitte die Regeln lesen! | Please read the forum rules!

REGELN: Bugreports | RULES: Bugreports


Erste Schritte & Tutorials | Self Help Index | Read Me | JD 2 Beta - FAQ

Support Chat

Keep smiling, it's simple!
Reply With Quote
  #6  
Old 08.04.2011, 05:35
$foo
Guest
 
Posts: n/a
Default linux watchfolder via remote control add-on

hi,

I just wrote a little bash script for linux,
which uses curl and jd's remote control add-on to
add containers to jd with optional mail reports.

(nightly / JDRemoteControl 12612 req.)

adjust the settings and
add this script to crontab ($crontab -e) to check watchfolder every 5 minutes
*/5 * * * * /etc/jd-watchfolder-cronjob.sh

download:
Code:
**External links are only visible to Support Staff**
-mike

p.s.
after some more tests - it's suggested to uncomment in jd-watchfolder-cronjob.sh
Code:
#sleep 1
to
Code:
sleep 1
line 92

and change the crontab to check every minute (crontab -e as root)
*/1 * * * * /etc/jd-watchfolder-cronjob.sh

Last edited by $foo; 13.04.2011 at 10:46. Reason: fix info
Reply With Quote
  #7  
Old 21.04.2011, 19:39
drbits's Avatar
drbits drbits is offline
JD English Support (inactive)
 
Join Date: Sep 2009
Location: Physically in Los Angeles, CA, USA
Posts: 4,434
Default Starting the JD program with Downloading Stopped

Create a new shortcut "JDownloader stopped"
Fill-in the command line as java -Xmx512m -jar jdownloader.jar --stop-download
Fill-in the start directory with the JDownloader directory.
Click OK

When it is time to start JD in the Run state, start JD the way you have been starting it.

When it is time to start JD in the Stopped state, use the "JDownloader stopped" shortcut.
________________________________________

I assume you are currently starting JDownloader with jdownloader.exe. If you are using a script or shortcut, copy it and add the --stop-download.

If your OS does not support shortcuts, just create a script instead.
Reply With Quote
Old 23.05.2011, 01:19
sabotage
Message deleted by Think3r. Reason: Unnecessary
  #8  
Old 23.05.2011, 08:33
remi
Guest
 
Posts: n/a
Cool

Quote:
Originally Posted by sabotage View Post
I cant work out how I can add custom scripts to the program, I've looked, tried and tested but made no progress.Thanks
Here's my quick answer.

jD is programmed in java, a compiled programming language. Getting started as a JD-Developer.

There are some places where scripting languages are used. One of them is the reconnection function. The reconnection recorder uses CURL, but you can also write your own batch script in any language you like.

jD has some APIs like the remote control interface, the web interface and the command interface. You can all use them to control jD's operation.

Note that there exist other search engines than Gogol's.

Last edited by Think3r; 15.11.2011 at 11:09. Reason: Added quote
Reply With Quote
Old 15.11.2011, 10:35
tanja82
Message deleted by Think3r. Reason: Unnecessary
Old 15.11.2011, 10:38
Think3r
Message deleted by Think3r. Reason: Unnecessary
  #9  
Old 15.11.2011, 10:42
remi
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by tanja82 View Post
Does this script also work on the iMac Version of jDownloader?
No.
Quote:
AutoIt v3 is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting.
(source : autoit site)

I would use one of the other scripts in the thread "Captcha Sound Alert for JDownloader". It contains several solutions for different platforms.

Last edited by Think3r; 15.11.2011 at 11:03. Reason: Added quote
Reply With Quote
Old 23.11.2011, 15:33
alixolson
Message deleted by tony2long. Reason: Spam.
  #10  
Old 09.12.2016, 02:17
thawn thawn is offline
Junior Loader
 
Join Date: Jul 2012
Posts: 11
Default Jdlbot 2

JDLBOT 2

I revived jdlbot and made it compatible to jdownloader2

I also freshened up the user interface and added some new features.
check it out here:
Code:
**External links are only visible to Support Staff**
The discussion thread is the same as for the original jdlbot version.

Last edited by thawn; 13.12.2016 at 10:05.
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:48.
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.