DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Take highlighted address and add +4 to zip code  (Read 5,710 times)

dpupello

  • Participant
  • Joined in 2008
  • *
  • Posts: 4
IDEA: Take highlighted address and add +4 to zip code
« on: December 21, 2011, 10:20 PM »
Can someone whip up a program or AHK script that would take a highlighted address, such as:

123 Main Street, Anyville, ST 55555
or...

123 Main Street
Anyville, ST 55555

...and "lookup" the Plus 4 zip code, so that it would return:

123 Main Street
Anyville, ST 55555-1234

or

123 Main Street, Anyville, ST 55555-1234

...depending on the input format.  Even just returning the Plus 4 code (1234) to the clipboard might also be useful.  Would beat the hell out of going to the USPS +4 lookup web page, then individually typing/pasting in the pieces of the address, then clicking "LOOKUP", etc.

Thanks for consideration!

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,736
    • Coding Snacks
Re: IDEA: Take highlighted address and add +4 to zip code
« Reply #1 on: December 24, 2011, 02:40 AM »
This is the only thing I found that seemed close. I don't know what Yahoo Widget Engine is though:

http://www.softpedia.com/get/Windows-Widgets/Widget-Miscellaneous/USPS-Address-Verifier.shtml

kyrathaba

  • N.A.N.Y. Organizer
  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 3,200
    • Participated in NANY Challenge Eight Times
    • Programming School - Deluxe Bonus Medal
    • Programming School - Stage 1 Medal
    • Coding Snacks
    • Military Service Badge - US Army
    • Writer
Re: IDEA: Take highlighted address and add +4 to zip code
« Reply #2 on: January 13, 2012, 02:29 AM »
If I or someone can find me a text file listing of 9-digit zip codes with associated city and state, I can easily do this. I found this webpage but it's only got 5-digit zip codes. Using a CSV text listing, this coding snack would be a piece of cake.
Win 10 Pro running on a 3.2 GHz CPU and 12 Gb RAM
__________________________________________

Proofreading Service: http://williammillerservices.com/proofreading

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: IDEA: Take highlighted address and add +4 to zip code
« Reply #3 on: January 13, 2012, 03:56 AM »
I might be able to leverage the USPS website itself.  Hang tight...

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: IDEA: Take highlighted address and add +4 to zip code
« Reply #4 on: January 13, 2012, 05:34 AM »
Here's a quick'n'dirty proof of concept:

http://skwire.dcmembers.com/apps/snacks/Zip+4Tool.zip

Please let me know if it works for you.

2012-01-12_232934.png

Original address: https://www.donationcoder.com/forum/index.php?topic=29374.0