GithubHelp home page GithubHelp logo

hatsuyuki15 / example-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from artikash/example-extension

0.0 1.0 0.0 51 KB

Examples showing how to create extensions for Textractor.

License: GNU General Public License v3.0

C++ 96.84% CMake 3.16%

example-extension's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.