JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 04.11.2010, 00:17
nicodocet
Guest
 
Posts: n/a
Default Captcha Alert : a simple tool solution.

Captcha Alert ver 1.5 by nicodocet

Starting from CHRONOMASTER 's script idea, I wrote in VB6 a very simple tool for captcha sound alert.
It can be also used as general allerter for the presence of any other window (also multiple window at a time) on the desktop, not only for captcha window.
Captcha Alert is a standalone one-file tool, not a JD plug-in.

Purpose:
Alerts the user with a sound when JD captcha window (or any other window) pops up.

Features:
  • scans every seconds the desktop, looking for JD captcha window (or any other window)
  • supports multiple windows watchdog at a time (according to the number of titles provided in .ini file)
  • plays a .wav file when JD captcha window is detected
  • replicate the sound, at a regular intervals, until the captcha windows is closed or (with the checkbox cheked) until the alert is reset
  • stops countdown timer in JD captcha window
  • fully customizable (window title, .wav file, interval, buttons caption etc.) via .ini file
  • can work minimized in the system tray

OS System:
Windows running XP (tested), but should works also on Vista and Win7 (both untested), with VisulaBasic runtime libraries installed.

Licence:
Captcha Alert is published as freeware

Warning:
Captcha Alert is released as it is, with no responsibilities about it usage.
I'm just a beginner with coding, so will find in this tool nothing a real programmer could do much better.

Note about CaptchaAlert.ini file:
To create CaptchaAlert.ini just run and quit the tool.
To modify CaptchaAlert.ini open and save it with a text editor.

The CaptchaAlert.ini file must comply to this format:

01. (JD captcha window title, also partialy. Multiple titles must be splitted with a "|" separator)
02. (path of the .wav sound file)
03. (interval in seconds after the sound is replicated)
04. (last checkboxes state before quitting)
05. ("sound until rest" checkbox caption)
06. (Reset button caption)
07. (Pause button caption)
08. (CaptchaAlert window vertical position)
09. (CaptchaAlert window orizzontal position)
10. ("stay always on top" checkbox caption)
11. ("stop countdown" checkbox caption)
12. ("minimize to tray" checkbox caption)
13. ("keys to send:" label)
14. (keys to send. Can be entered one or more keyboard characters or keystrokes)
15. ("start minimized" checkbox caption)
16. (Exit popup caption)
17. (Resume alternative button caption)


example (ENG):
Spoiler:
01. : Please enter
02. C:\WINDOWS\media\notify.wav
03. 5
04. 10001
05. sounds until reset
06. Reset
07. Pause
08. 100
09. 100
10. stay always on top
11. stop countdown
12. minimize to tray
13. keys to send:
14.
15. start minimized
16. Exit
17. Resume

example (ITA):
Spoiler:
01. : Inserire
02. C:\WINDOWS\media\notify.wav
03. 5
04. 10001
05. suona fino al reset
06. Reset
07. Pausa
08. 100
09. 100
10. sempre in primo piano
11. ferma conto rovescia
12. riduci nella systray
13. codici da inviare:
14.
15. avvia ridotto ad icona
16. Esci
17. Riprendi

example for multiple windows watchdog (MULTI lang):
Spoiler:
01. : Please enter | : Inserire | : Por favor ingresar | : Bitte eingeben!
02. C:\WINDOWS\media\notify.wav
03. 5
04. 10001
05. sounds until reset
06. Reset
07. Pause
08. 100
09. 100
10. stay always on top
11. stop countdown
12. minimize to tray
13. keys to send:
14.
15. start minimized
16. Exit
17. Resume


Download link:
See inside the attached file for the download link. Copy and paste it into your browser to download CaptchaAlert.

-----------------------------------
Changelog:
-----------------------------------

v.1.5 (23/03/2012)
- maintenance release, with minor improvements
- fixed a bug in the popup menu: now the menu is hidden by clicking outside it

v.1.4 (10/05/2011)
- added a checkbox to force Captcha Alert's window to be minimized in the system tray
- added a checkbox to start Captcha Alert already minimized
- added a popup menu to handle all Captcha Alert functions when minimized to the system tray
- removed Quit button
- added a Pause/Resume button to temporaly disable windows watchdog
- added different icons for Paused/Resumed state
- changed the .ini file format and fixed a bug in storing Captcha Alert's window position
- fixed a little graphic artifact in the GUI

v.1.3 (never released)
- added a textbox to enter one or more keyboard characters or keystrokes to be sended to the detected window.
See "**External links are only visible to Support Staff** for further details)

v.1.2 (29/01/2011)
- added a checkbox to stop countdown timer in JD captcha window

v.1.1 (06/11/2010)
- at first start (i.e., without an already existing .ini file) Captcha Alert retrieves windows folder path by Environ("windir") function for better compability
- reset is now immediatly effective, also when the allerted window is still present
- added support for multiple windows watchdog at a time (according to the number of titles provided in .ini file)
- entrirely rewritten watchdog function, to increase performance
- the position of Captcha Alert window is saved before quitting
- added a checkbox to force Captcha Alert's window to stay always on top in z-order
- added a raw error-handler for reading and writing operations of the .ini file.

v.1.0
- first stable version, released on 04/11/2010 for JD Community forum

.
Attached Files
File Type: zip CaptchaAlert15.zip (21.5 KB, 1551 views)

Last edited by nicodocet; 24.03.2012 at 00:51.
Reply With Quote
  #2  
Old 04.11.2010, 00:49
drbits's Avatar
drbits drbits is offline
JD English Support (inactive)
 
Join Date: Sep 2009
Location: Physically in Los Angeles, CA, USA
Posts: 4,437
Default

Would you consider licensing this under the GPL3 (or a different open source license)?
Reply With Quote
  #3  
Old 04.11.2010, 11:27
nicodocet
Guest
 
Posts: n/a
Default

I'm just a beginner with coding, so I guess in the source you'll find nothing a real programmer could do much better. Any way, let's see if there are several requests for source...

Of course, any report (bugs, suggestions etc.) will be very apreciated.

Last edited by nicodocet; 04.11.2010 at 11:31.
Reply With Quote
  #4  
Old 04.11.2010, 17:51
fma16
Guest
 
Posts: n/a
Default

Not working for me.
I'm running in a french version of JD (i Change please enter by Veuillez Entrer").
Some help will be great
Reply With Quote
  #5  
Old 04.11.2010, 19:07
nicodocet
Guest
 
Posts: n/a
Default

Can you post your ini .file? So I can change language in JD to french and try in my PC for debug.
Reply With Quote
  #6  
Old 04.11.2010, 19:26
fma16
Guest
 
Posts: n/a
Default

here the .ini file
Code:
**External links are only visible to Support Staff**
Reply With Quote
  #7  
Old 04.11.2010, 20:00
nicodocet
Guest
 
Posts: n/a
Default

Found a strange thing in your .ini file
Code:
2. C:\WINDOWS.0\media\notify.wav
should be
Code:
2. C:\WINDOWS\media\notify.wav
Please change the .ini as suggested and try again.

P.S.: if you translate in french the other lines of .ini file, I can add it in the first message to be ready to use.

Last edited by nicodocet; 04.11.2010 at 20:17.
Reply With Quote
  #8  
Old 04.11.2010, 20:18
fma16
Guest
 
Posts: n/a
Default

Works perfectly!
Thanks!
Reply With Quote
  #9  
Old 04.11.2010, 22:40
willemijns
Guest
 
Posts: n/a
Default

Added on my document.

but does not works 4 me with EN version.... i have not changed the .ini file...
Reply With Quote
  #10  
Old 04.11.2010, 22:45
fma16
Guest
 
Posts: n/a
Default

Just an advice, you must let the program running. I made this mistake.

------

Vous devriez essayer en laissant le programme tourner, j'ai fait cette erreur parce que j'avais mal compris et cela ne marchait pas.
Je me permet de vous parler en français parce que je sais que vous parlez cette langue
Reply With Quote
  #11  
Old 04.11.2010, 22:52
willemijns
Guest
 
Posts: n/a
Default

thanks but i understand the english in fact the program worked well, the sound used by default was the same than my IM clone so i think this software "captcha alert" does not works :-( so this program works well...
Reply With Quote
  #12  
Old 04.11.2010, 22:56
fma16
Guest
 
Posts: n/a
Default

You are saying that the sound who use the software is a problem for you? You can change it if you want.
Reply With Quote
  #13  
Old 04.11.2010, 23:00
willemijns
Guest
 
Posts: n/a
Default

yes i have understood the concept
Reply With Quote
  #14  
Old 04.11.2010, 23:09
fma16
Guest
 
Posts: n/a
Default

I answered your question?
Reply With Quote
  #15  
Old 04.11.2010, 23:13
willemijns
Guest
 
Posts: n/a
Default

yes i have understood the .ini file concept before your answer but never mind
a feedback: "%WINDIR%\media\notify.wav" is better
Reply With Quote
  #16  
Old 05.11.2010, 12:33
remi
Guest
 
Posts: n/a
Cool

@nicodocet

I've tested your tool and it works fine. Nice work!

1) Would it be possible to make it more generic? I would like it to recognise multiple window titles instead of one. Is that possible?

2) Would it be possible to stop the sound as soon as the "Reset" button is pressed? I think you test every second, but deciphering and typing a captcha takes more time. Could you make this period longer or make a customer definable value (1...10 seconds) of it as well?

Thank you very much.
Reply With Quote
  #17  
Old 05.11.2010, 13:17
nicodocet
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by remi View Post
I would like it to recognise multiple window titles instead of one. Is that possible?
Multiple windows of the same program?
Or multiple windows of different programs?
In the meanwhile, as it is, you can get what you want by copying Captcha Alert in different places (i.e. create for example 4 or 5 subfolders, each with a copy of CaptchaAlert.exe and of its .ini file) and modify each .ini file with the title of the window you want to control.
Quote:
Originally Posted by remi View Post
Would it be possible to stop the sound as soon as the "Reset" button is pressed?
Let me understand. This is the scenario: the windows pops up, you hear the first alert, you press the reset button, and you want Captcha Alert to be silent immediatly, althought the captcha window isn't yet closed?
Quote:
Originally Posted by remi View Post
Could you ... make a customer definable value (1...10 seconds) of it as well?
Yes, this is quiet easy to do, but entering a longer interval will cause Captcha Alert to be less reactive.

Last edited by nicodocet; 05.11.2010 at 13:26.
Reply With Quote
  #18  
Old 05.11.2010, 15:46
remi
Guest
 
Posts: n/a
Cool

1) I prefer not to run multiple instances of the same program when it isn't necessary. They all take memory. With 'generic' I mean that it should work with any window and be independent of any program. You could implement this with an OR operator. I'm sure that it exists in any programming language, including VisualBasic. In the .ini file you can separate the options with a "|" or simply use the programming language expression you use in your program. VisualBasic is an interpreted language.

2) Yes, I don't care about a few seconds more or less. The window stays open for more than a minute. It's annoying that the alert keeps going while I'm processing the captcha window. If you make it a setting in the .ini file I would be very happy. I know you can make it perfect.
Reply With Quote
  #19  
Old 06.11.2010, 11:28
nicodocet
Guest
 
Posts: n/a
Default

Released ver. 1.1!
Quote:
Originally Posted by willemijns View Post
a feedback: "%WINDIR%\media\notify.wav" is better
new: at first start (i.e., without an already existing .ini file) Captcha Alert retrieves windows folder path by Environ("windir") function for better compability
Quote:
Originally Posted by remi View Post
I would like it to recognise multiple window titles instead of one. Is that possible?
new: added support for multiple windows watchdog at a time (according to the number of titles provided in .ini file)
In the .ini file, multiple titles must be splitted with a "|" separator, for example:
Code:
1. : Please enter | : Inserire | : Por favor ingresar | : Bitte eingeben!
Quote:
Originally Posted by remi View Post
Would it be possible to stop the sound as soon as the "Reset" button is pressed?
new: reset is now immediatly effective, also when the allerted window is still present
Quote:
Originally Posted by remi View Post
Could you ... make a customer definable value (1...10 seconds) of it as well?
The pause between two sounds is already customer definable, see .ini file
Code:
3. 5
where 5 is the number of seconds CaptchaAlert will wait until to play a new sound.
This timer will not affect watch dog frequence (every 800 milisec), to keep Captcha Alert enough reactive.

Other news:
- entrirely rewritten watchdog function, to increase performance
- the position of Captcha Alert window is saved before quitting
- added a checkbox to force Captcha Alert's window to stay always on top in z-order
- added a raw error-handler for reading and writing operations of the .ini file.

I had no time to deep test this version, so some bugs could exist. Reports are of course welcome.

Last edited by nicodocet; 06.11.2010 at 11:43.
Reply With Quote
  #20  
Old 10.11.2010, 13:59
remi
Guest
 
Posts: n/a
Cool

Thanks for all the changes. I've been using it for a few days now and it works perfectly.

I can also use it for other pop-up windows now. It doesn't consume too much memory neither. Very nice.

You should try to sell it to M$ - but don't forget to include a few bugs and security holes in that case.

Note that the word "resetted" doesn't exist in English. The correct spelling is "reset". Luckily that can be changed by the customer as well.
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 12:02.
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.