mirror of
https://github.com/Artikash/Example-Extension.git
synced 2024-11-10 11:35:35 +08:00
20 lines
988 B
Markdown
20 lines
988 B
Markdown
# Example Extension
|
|
|
|
Every time Textractor has a sentence of text ready,
|
|
it will call ```OnNewSentence``` on all extensions it finds sequentially,
|
|
plugging the output of ```OnNewSentence``` from the previous extension into the next extension.<br>
|
|
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.<br>
|
|
```"process id"```: process id that the sentence is coming from. 0 for console and clipboard.<br>
|
|
```"text number"```: number of the current text thread. Counts up one by one as text threads are created. 0 for console, 1 for clipboard.<br>
|
|
```"text name"```: pointer to start of a wchar array of the name of the current text thread.<br>
|
|
|
|
# Notes
|
|
|
|
You just need Visual Studio with basic C++ support to compile this project.<br>
|
|
Compile targeting x86 for Textractor and x64 for Textractor64.
|