Example-Extension/README.md

21 lines
1.1 KiB
Markdown
Raw Normal View History

2018-07-14 01:35:39 +08:00
# ExampleExtension
2018-09-30 04:56:22 +08:00
Every time Textractor has a sentence of text ready,
2018-07-27 13:59:54 +08:00
it will call ```OnNewSentence``` on all extensions it finds sequentially,
plugging the output of ```OnNewSentence``` from the previous extension into the next extension.<br>
2018-07-14 01:35:39 +08:00
After the sentence has been processed by all extensions, it will be displayed.
2018-09-23 05:33:40 +08:00
# SentenceInfo
2018-08-18 02:30:06 +08:00
2018-09-23 05:33:40 +08:00
## The following properties are in ```SentenceInfo```
```"current select"```: always 0 unless the sentence is in the text channel selected by the user.<br>
2018-08-23 20:23:02 +08:00
```"hook address"```: address the hook was inserted at. May need cast to unsigned. Console text channel is always -1.<br>
2018-08-18 02:30:06 +08:00
```"process id"```: process id that the sentence is coming from.<br>
2018-09-23 05:33:40 +08:00
```"text handle"```: number that uniquely identifies the current text channel.<br>
```"text name"```: pointer to start of a wchar array of the name of the current text channel.<br>
2018-08-18 02:30:06 +08:00
2018-07-14 01:35:39 +08:00
# Notes
2018-08-18 02:30:06 +08:00
You just need Visual Studio with basic C++ support to compile this project.<br>
2018-09-30 04:56:22 +08:00
Compile using Release configuration unless you built Textractor from source yourself using a Debug configuration. Compile targeting x86 for Textractor and x64 for Textractor64.