Thursday, January 25, 2007

AutoHotkey to the rescue

As described in the post RSS Feeds in Outlook 2007 I ended up with hundreds of feeds in both Outlook, IE7 and Windows Live Mail desktop.

Since I could not find an easy way to delete all feeds from Windows Live Mail desktop and I did not want to delete them one by one even though I'm quick on the keyboard I made use of AutoHotkey.

I first found this location and though I could delete multiple feeds that way but somehow that was not enough: "[drive letter]:\Documents and Settings\[user name]\Local Settings\Application Data\Microsoft\Windows Live Mail desktop\[email address]\Your Feeds

The solution. I used AutoScriptWriter (recorder) and recorded what I wanted to do. Then I made some changes to the script and ended up with this script that quickly deletes 100 feeds at a time.

WinWait, Your feeds - Windows Live Mail desktop, IfWinNotActive, Your feeds - Windows Live Mail desktop, , WinActivate, Your feeds - Windows Live Mail desktop, WinWaitActive, Your feeds - Windows Live Mail desktop, loop, 100 { MouseClick, left, 68, 250 Sleep, 100 Send, {DEL}{ENTER} }

According to the AutoHotkey website:

AutoHotkey is a free, open-source utility for Windows. With it, you can:

  • Automate almost anything by sending keystrokes and mouse clicks. You can write a mouse or keyboard macro by hand or use the macro recorder.
  • Create hotkeys for keyboard, joystick, and mouse. Virtually any key, button, or combination can become a hotkey.
  • Expand abbreviations as you type them. For example, typing "btw" can automatically produce "by the way".
  • Create custom data entry forms, user interfaces, and menu bars. See GUI for details.
  • Remap keys and buttons on your keyboard, joystick, and mouse.
  • Respond to signals from hand-held remote controls via the WinLIRC client script.
  • Run existing AutoIt v2 scripts and enhance them with new capabilities.
  • Convert any script into an EXE file that can be run on computers that don't have AutoHotkey installed.

Part 3 of 3

No comments:

Post a Comment

Subscribe to the comments feed

Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner

Contact Us | About JTB World | Subscribe to this blog
JTB World's website | Website General Terms of Use | Privacy Policy
^ Top of page

© 2004- JTB World. All rights reserved.