Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I wrote a program that will take text on my clipboard and write it to a temp file and then open that temp file in notepad. The program is called paste.exe and I put it in my path, so I could just WIN+R, type paste and have a the text pasted to a new text file. This is a huge time saver for me personally.

I'd like to create a similar program that will create a new Windows 7 sticky note with what's on my clipboard but I'm having a hard time finding a way to automate the process.

stikynot.exe is Sticky Notes and as best I can tell there are no command line arguments.

Any suggestions?

share|improve this question
add comment

2 Answers

You might look into using AutoHotkey to automate the process. You may need to change your thinking a bit, but it should do the trick.

share|improve this answer
add comment

You're correct that there are no command line args. Dumping the binary stikynot.exe doesn't revel any strings that looks like a command option or easy way to hack in. It looks like it contains WCF code that provides an interface to a configuration file for notes. So instead of trying to script that limited UI, why not attempt to talk to this configuration/database, to add your notes there? The sticky notes file is kept under the AppData/Roaming/Microsoft/Sticky Notes directory for each user, in the file StickyNotes.snt. The file type is unique to StickyNotes. Here is an overview of the structure. Here's some documentation about interfacing this type of strutured Storage document.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.