«

»

Jul 12 2012

AutoHotKey: Tracking Packages Quick


zfxgughh thumb AutoHotKey: Tracking Packages QuickDo you run in to situations on a regular basis where you have to track packages, update customers and make sure equipment arrives on time? And does your company have an antiquated system to handle those types of situations?

If you said yes to those, you might like this…

AutoHotKey continues to be one of my favorite applications for automating certain functions. It has a great ability to minimize the things that you do repetitively; good or bad.

So, one day I realized that I was doing something over and over again, which is tracking packages, and I like to use a website called PackageTrackr.com because it automatically detects the type of tracking number that you’re inputting and then returns tracking information; it includes a Google map showing the source, destination and in transit locations.

it really doesn’t matter what the track number is for the item that you’re trying to track, because the website has probably the most simple URL for tracking packages…

http://www.packagetrackr.com/track/YOURTRACKINGNUMBER

You simply take your tracking number and tack it on to the end of the URL, like I have listed above, and the website will return a response…

But to make it even easier, it’s nice to have application like autohotkey where you can automate the process of highlighting the tracking number and then simply launching the package tracking website, with the tracking number already filled in for you.

Here’s how it works:

A system icon down by the clock, from the desktop, is loaded and waits for the user to activate the function. there’s two ways activate the function…

1. use the Windows key + T

2. Right-click on the icon in the system tray, down by the clock, on the desktop and choose the option to track package.

rmqu0d25 thumb AutoHotKey: Tracking Packages Quick

Either option automatically pastes the tracking number that you copied into the system clipboard into the input box for tracking the package.

image thumb1 AutoHotKey: Tracking Packages Quick

If you have a different tracking number that you want to use, different than what’s already copied into the clipboard, you can enter the tracking number manually. But the end result is that the tracking website is launched with the tracking number, providing visual results.

hopajn0q thumb AutoHotKey: Tracking Packages Quick

After the results are displayed through the default web browser, the URL is copied to the system clipboard where you can paste it into a task or an e-mail for the customer.

 

Here’s the autohotkey script that does this for you:

;
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         A.N.Other <myemail@nowhere.com>
;
; Script Function:
;

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Programname=PackageTracker

traymenu:
menu, tray, nostandard
menu, tray, tip, %programname%
menu, tray, add, Track Package, traymenuhandler
Return

traymenuhandler:
if a_thismenuitem= Track Package
{
goto, ptracker
}
return

ptracker:
Inputbox, packagenumber, %programname% , What's the tracking number?,,,,,,,,%clipboard%
if ErrorLevel
    return

run, http://www.packagetrackr.com/track/%packagenumber%
clipboard=http://www.packagetrackr.com/track/%packagenumber%
traytip, Track Package, Package URL is now in clipboard memory…
packagenumber=
Return

#t::
goto, ptracker
return 

 

Obviously, the script can be changed or adjusted to use other websites that have similar URL usage, but for now I think this will prove itself very useful.

The only thing you need here is autohotkey; which is a free download from their website…

download AutoHotKey: Tracking Packages Quick 

AutoHotKey 
DOWNLOAD IT

download AutoHotKey: Tracking Packages Quick
 
and/or here’s the compiled version with the AHK script…

download AutoHotKey: Tracking Packages Quick 

TrackaPackage 
DOWNLOAD IT

download AutoHotKey: Tracking Packages Quick
 

I hope this helps…

 

Thank you,
Larry Henry Jr.
LEHSYS.com

…via Dragon NaturallySpeaking 11



pixel AutoHotKey: Tracking Packages Quick