Delete Outlook Emails With The Middle Mouse Button

Reader Grigory writes in with his ubergeeky script that deletes messages in Microsoft Outlook just by middle-clicking on them in the list—so you can make short work of cleaning out your inbox.

The magic works by a simple AutoHotkey script that checks for a middle-click on the Outlook window, and sends a left mouse button and then a Ctrl+D to delete the message. This means you can middle-click on the preview pane, or specific items in the list—or you can even use it to delete items from your calendar.

To create your own middle-click deleting feature, create a new AutoHotkey script, or add the following to your existing script. Once you've done that, launch the script and you should be in business.

; Lets delete Outlook emails with a wheel button ; By Grigory Shevchenko

#SingleInstance,Force #NoEnv

#IfWinActive ahk_class rctrl_renwnd32 ~MButton:: MouseClick, Left sleep 10 Send, ^d return

Thanks, Grigory!

Brand new to AutoHotKey and its time-saving ways? Peek at our beginner's guide to learn how to add this script, or write your own.


Comments

Be the first to comment on this story!

Trending Stories Right Now