William Bartholomew

Musings on software engineering, technology and Aspergers Syndrome.

Rapid Blogging Using Windows Live Writer and AutoHotkey

leave a comment »

While I’m talking about AutoHotkey here is the script I use for launching Windows Live Writer. It is executed by pressing Windows Key+B and it switches to Windows Live Writer (or launches it if it isn’t running), starts a new post by sending the Ctrl+N shortcut, and move the cursor into the title field by sending Shift+Tab.

; Open Windows Live Writer
#b::
  LiveWriterTitle = Windows Live Writer
LiveWriterPath = %ProgramFiles%\Windows Live\Writer\WindowsLiveWriter.exe
  SetTitleMatchMode, 2
  IfWinNotExist, %LiveWriterTitle%
  {
    Run %LiveWriterPath%
  }
  WinActivate, %LiveWriterTitle%
  WinWaitActive, %LiveWriterTitle%
  Send, ^n ;Start a new post
  Send, +{Tab} ;Move the cursor into the title field
  return

Written by wbarthol

October 5, 2008 at 12:49 pm

Posted in utility

Leave a Reply