Welcome Guest.   Make a donation to an author on the site December 20, 2014, 05:01:03 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: Simple Text Verifier (Autohotkey script)  (Read 4327 times)
wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« on: September 09, 2011, 02:52:28 AM »

I thought I share a little AHK script I made a while ago and use quite often. Perhaps someone finds it useful.

Usage:
Type something in twice, and it informs you if both entries are the same. If yes, the entry is copied to the clipboard.

That's it.

Compiled script and source attached to this forum entry. Enjoy.






Why I made it (if you're interested)
At my workplace I've to install updates for a telephone software. They send a DVD and a letter with a really long serial number. The serial has to be entered once and there's no "serial is wrong" check. If the serial is wrong, the app continues to work for some time, but eventually starts telling "no data found" for every query. Yes, as silly as it sounds, but that's their idea of copy protection. To help myself, I typed in the serial twice in notepad and compared if I got it right.

As I had some time to kill I played with AHK and created this script. The idea is, that I wouldn't enter the same error twice. I use it to type in serial keys, TAN numbers, bank account numbers... just anything important, where's no margin for error.

The script is pretty basic. The #If Routine is the only AHK_L in there. The most advanced part of the script is the coloring of the fields. This routine isn't done by me. Proper credit is given in the source of course, but it demonstrates real nice that AHK was never intended as programming language and has to be forced to do such things.

Usage example
Let's say, you got a list with 50 TAN codes for your bank account and want them imported in your password app like KeePass.
Enter the TAN codes in Simple Text Verifier, activate "Write Log". If typed in correct, it'll be saved in the log file. Press CTRL+L to open the log.
You've to enter every TAN twice, but at least you know it's 100%.

Edit: Script updated to v3
Since I keep using this little script and missed some features, I updated it:

  • I always liked the auto-hyphen if I type in Microsoft serials. Now the script can do the same.
  • If there's a difference, it'll tell you where it is.
  • Positive results can be written in a log file (easy collection of TAN numbers)
  • Write chars upper-case and stay-on-top.

* Simple Text Verifier_v3.zip (301.03 KB - downloaded 146 times.)
« Last Edit: May 15, 2012, 03:37:02 AM by wr975 » Logged
Ath
Supporting Member
**
Posts: 2,303



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: September 09, 2011, 03:13:29 AM »

I can see a few use-cases for this, great Thmbsup
Logged

capitalH
Participant
*
Posts: 71


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #2 on: September 09, 2011, 04:31:55 AM »

I suppose I should not use the same technique as I use on password fields in websites (or email fields) where I copy it to the second field...
Logged
wr975
Charter Member
***
Posts: 369



View Profile Give some DonationCredits to this forum member
« Reply #3 on: September 09, 2011, 05:52:53 AM »

I suppose I should not use the same technique as I use on password fields in websites (or email fields) where I copy it to the second field...

The script is of course useless if someone would copy and paste... Never thought of that.   Wink

Edit: Script updated, see first thread. Won't allow clipboard pasting anymore.
« Last Edit: May 15, 2012, 02:19:08 AM by wr975 » Logged
cranioscopical
Friend of the Site
Supporting Member
**
Posts: 4,200



see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: September 09, 2011, 06:11:27 AM »

Thanks for sharing, wr975  Thmbsup
Logged

Chris
Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.027s | Server load: 0.15 ]