JDownloader Community - Appwork GmbH
 

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #26  
Old 22.12.2010, 10:38
brunano21
Guest
 
Posts: n/a
Default

Hello, I'm Italian and I apologize for my poor English.
I have rewritten the code CHRONOMASTER making it a bit more streamlined and simple.
Now the script simply emits a sound with a delay of 3 seconds and no window will appear
Below I will carry the full code:
Code:
cs ----------------------------------------------------------------------------

 AutoIt Version: 3.3.6.1
 Author:         Brunano21

 Script Function:
    Captcha Sound Alert for JDownloader

 Script Version: 1.0

 Script Date: 12/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 = "Inserire"

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

; 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 ----------- ;


TraySetToolTip("Captcha Sound Alert")
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
		Sleep(1000)
        If (WinExists($DetectWindow))then
			SoundPlay($SoundFile)
            Sleep($SoundDelay)
		EndIf
	
WEnd
Reply With Quote
 

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:16.
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.