mathewthe2 / Game2Text

Complete toolbox for gamifying language learning
https://www.Game2Text.com
Apache License 2.0
186 stars 24 forks source link

Add Text Hooker #18

Closed mathewthe2 closed 3 years ago

mathewthe2 commented 3 years ago

Add Text Hooking as another text extraction method (Allow text hooking without sharing game screen with chrome. [Main Menu]

  1. Extraction Method 1: Classic OCR -> select screen to share with Chrome
  2. Extraction Method 2: OCR-assisted Game Script Matching -> select script from script window -> select screen to share with Chrome
  3. Extraction Method 3: Text Hooking -> Select Process PID (show extra menu if user wants to share screen)
  4. Extraction Method 4: Clipboard to game2text -> Turn on clipboard mode (show extra menu if user wants to share screen)

Extra button in toolbar to launch text hooker settings dialog.

Text hooker Settings Dialog:

  1. Input with "list attribute" to select running application
  2. After selecting application, automatically attempt to attach or detach application
  3. while attaching, show Attaching... label and indefinite loading bar
  4. If attach -> success toast; otherwise show error toast, and hide loading bar
  5. After successful attach show all available handles inside select (dropdown) element and when select, show result in the preview text in the same window
  6. At dialog lower action bar show 'Save' primary button and 'Cancel' secondary button
mathewthe2 commented 3 years ago

Due to limitations with working with wexpect and Tesseract-CLI, closing for now.