Sunday, February 28, 2010

Simple AhK Script for Simplenote and ConnectedText

This script will paste the contents of a Simplenote entry into ConnectedText. It's still raw, but it works.

^p::
clipboard =
SendInput ^c
Clipwait
clipboard=%clipboard%
WinActivate, ConnectedText
SendInput !t
SendInput %clipboard%`n
SendInput {PgUp}{Del}
IfWinActive, Confirmation
   return
else
   SendInput !e
   return
return

Just select the note (with title) and press CTRL-p. It will activate ConnectedText and paste a topic with the same name as the Simplenote topic. If a topic with that name already exists, it does nothing. (I'll fix that later.)

It works from both the Simplenote Website and the Chrome Plugin (and both from the note view and the editor).

1 comment:

MK said...

I had to put in a "Sleep, 100" between "WinActivate, ConnectedText" "SendInput !t" on my home computer to make it work.
MK