Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Dear All,

I'm creating windows application in c#, where automating windows.

I'm trying to extract text from sticky notes. But its an compound file, so, can any one plz help me, how can i read/extract text from sticky notes.

C#
one of the manual way i found is,
1)copy the sticky file
2)extract with 7zip
3)read file 0, open with RTF.


But, how to extract text in c#.

What I have tried:

C#
public static bool EvaluateStickynotes()
      {
          bool result = false;
          string appDataFolder = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);

          string[] filePaths = Directory.GetFiles(appDataFolder + "\\Microsoft\\Sticky Notes", "*.snt");
          if (filePaths.Length > 0)
          {
              //extract text
          }

          return result;
      }


Thanks in advance.
Posted
Updated 29-May-17 5:31am
Comments

1 solution

 
Share this answer
 
Comments
abdul subhan mohammed 30-May-17 4:56am    
Hi Maciej,
I have gone through the above API but its not returning StickyNotes text. Instead, its returning clicpboardtext.
abdul subhan mohammed 8-May-18 7:38am    
Hi Maciej,

Could you please help me, how to get sticky notes text by using "Jesper Niedermann's .NET Blog - API for Sticky Notes in Windows 7[^]"

Does it works with windows 8/10 ??

Thanks
Maciej Los 8-May-18 7:53am    
As far as i know, you can use Sticky Notes on Win Vista to to Win10. See: Sticky Notes
How to use it in Win10: How To Use Sticky Notes In Windows 10

There's complete code under the link i provided. So, use it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900