Go to file
2021-01-31 14:00:25 -07:00
ExampleExtension simplify build 2021-01-31 14:00:25 -07:00
.gitattributes Add .gitignore and .gitattributes. 2018-05-26 06:22:35 -04:00
.gitignore add visual extension 2020-09-18 22:59:23 -06:00
ExampleExtension.sln add visual extension 2020-09-18 22:59:23 -06:00
LICENSE Create LICENSE 2018-07-13 13:38:54 -04:00
README.md add new properties 2020-08-12 07:02:25 -06:00

Example Extension

Every time Textractor has a sentence of text ready, it will call ProcessSentence on all extensions it finds sequentially (via OnNewSentence) After the sentence has been processed by all extensions, it will be displayed.

SentenceInfo

The following properties are in SentenceInfo

"current select": always 0 unless the sentence is in the text thread selected by the user.
"process id": process id that the sentence is coming from. 0 for console and clipboard.
"text number": number of the current text thread. Counts up one by one as text threads are created. 0 for console, 1 for clipboard.
"text name": pointer to start of a wchar array of the name of the current text thread.
"void (*AddSentence)(int64_t number, const wchar_t* sentence)": pointer to function that adds a sentence to the text thread with the specified number.
"void (*AddText)(int64_t number, const wchar_t* text)": similar to AddSentence, but doesn't treat the text like it's a full sentence.
"DWORD (*GetSelectedProcessId)()": pointer to function that returns the process id currently selected in Textractor's top left dropdown.

Notes

You just need Visual Studio with basic C++ support to compile this project.