Examples showing how to create extensions for Textractor.
Go to file
Akash Mozumdar 140e9ef2ff new ABI
2019-02-26 04:49:11 -05:00
ExampleExtension new ABI 2019-02-26 04:49:11 -05:00
.gitattributes Add .gitignore and .gitattributes. 2018-05-26 06:22:35 -04:00
.gitignore Add .gitignore and .gitattributes. 2018-05-26 06:22:35 -04:00
ExampleExtension.sln Add project files. 2018-05-26 06:22:38 -04:00
LICENSE Create LICENSE 2018-07-13 13:38:54 -04:00
README.md fixed abi allows release/debug to mix 2019-02-13 18:36:34 -05:00

ExampleExtension

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.
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.
"hook address": address the hook was inserted at. May need cast to unsigned. Console text thread is always -1.
"process id": process id that the sentence is coming from. 0 for console and clipboard text threads.
"text handle": number that uniquely identifies the current text thread.
"text name": pointer to start of a wchar array of the name of the current text thread.

Notes

You just need Visual Studio with basic C++ support to compile this project.
Compile targeting x86 for Textractor and x64 for Textractor64.