如何从便签,窗口,c#中提取文本。 [英] How to extract text from sticky notes, windows, c#.
本文介绍了如何从便签,窗口,c#中提取文本。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的所有人,
我正在用c#创建Windows应用程序,自动化窗口。
我正试图从便签中提取文字。但它是一个复合文件,所以,任何一个PLZ可以帮助我,我如何从粘滞便笺中读取/提取文本。
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.
one of the manual way i found is,
1)copy the sticky file
2)extract with 7zip
3)read file 0, open with RTF.
但是,如何在c#中提取文本。
我尝试了什么:
But, how to extract text in c#.
What I have tried:
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.
推荐答案
检查: Jesper Niedermann的.NET博客 - Windows 7中粘滞便笺的API [ ^ ]
>
这篇关于如何从便签,窗口,c#中提取文本。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文