#26
|
|||
|
|||
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 |
Thread Tools | |
Display Modes | |
|
|