sachleenblogprojectsabout me

back Dropbox Uploader and Screenshot Utility with AutoHotkey

DBUpload

Update (Jan 29, 2012) Updated DBUpload with a new app that allows you to upload text straight to Dropbox.

Update (Jan 14, 2012) I've released an updated version that copies short URLs (uses http://is.gd) to the clipboard. See below for details.

I've developed a couple of AutoHotkey scripts that allow you to quickly upload files and screenshots to Dropbox. This is my alternative to Droplr, an application that I've been using for a long time (originally Windroplr) but have never been happy with.

There are two independent scripts, DBScreenshot and DBUpload. DBScreenshot is a tool that allows you to select a rectangular region of the screen and saves the screenshot to the Dropbox Public folder. The URL to the screenshot is then copied to the clipboard. Similarly, DBUpload uploads files that drag-and-drop into a drop box that pops up on the screen. You can even upload multiple files at once and have all of the URLs copied to the clipboard.

How easy is that?

Usage

I have the following shortcuts setup in my AHK Keyboard Shortcuts script:

;DBScreenshot and DBUpload
PRINTSCREEN:: run %A_ScriptDir%\DBScreenshot.exe
#w:: run %A_ScriptDir%\DBUpload.exe
#c:: run %A_ScriptDir%\DBPaste.exe

This maps the PrintScreen button to DBScreenshot, Win+w to DBUpload, and Win+c to DBPaste.

If you do not already have a script for such shortcuts, I've included one in the download. Simply run Shortcuts.exe and these shortcuts will work for you.

Download

DBUpload

Includes compiled binaries and source.

Configuration

Before you can use DBUpload, you have to set some values in the settings.ini file.

User ID

First head over to your Public Folder. Select a file and from the menu click on Copy Public Link. You will see a URL that looks something like http://dl.dropbox.com/u/33076/... The series of numbers is your User ID.

Public Folder Location

Next, browse your Dropbox folder on your computer and copy the path to the Public folder.

Your settings.ini file should look something like this:

[Config]
UserId=33076
PublicFolder=C:\Users\Sachleen Sandhu\Dropbox\Public
ShortenUrls=true

Note: PublicFolder does not have a trailing slash.

If set to true, ShortenUrls paramater causes the script to shorten the public URLs using http://is.gd before copying them to the clipboard.