Code Monkey home page Code Monkey logo

touchportal_messagekeypress's Introduction

TouchPortal Message Key Press Plugin

Description

Touch Portal's default "Write Text" action uses copy/paste functionality. This plugin adds the capability of actual keypresses of a set of text instead of the copy/paste method. Should be able to support multi-lingual characters as long as they are part of the unicode set.

Change Log

v2.0.0 - Update to use Rust Binary
    Updates: Instead of using a jar which required external Java, this uses a Rust binary to execute the typing which seems to work better
    States: message_keypress_typing - True or False - will tell when the plugin is typing or not.
v1.0.0 - Initial Release
    Actions:
      - Type Keys from String - type out a string like if it was typed on a keyboard
    States: None
    Events: None

System Requirements

  • Touch Portal

Action

Only 1 action is provided from this plugin currently

Action

  • Type Keys from String
    • Desc: Takes in a string (max 4000 characters will work) and will then start typing those characters like using a keyboard.

Example

To utilize the new message_keypress_typing state the "most efficient" way is something like the following button

The flow that is executed, types the message, and then calls another flow that does a wait, then repeat loop that checks the status of the message_keypress_typing state, when the state is true, it will sleep for 1 millisecond and loop again, else it just allows the loop to complete (near instantaneous) and then allows the rest of the flow execution afterwards to complete. If you have questions about this, hit me up in the #message_keypress discord channel on the Touch Portal Official Discord.

Example Button

Build Notes

Currently the rust binary is prebuilt in the src directory - working on getting that to be part of the "compile" phase so it's dynamic by OS type.

Your own build

If you want to build this yourself, you will need to fork then clone the repo run npm install to pull in the dependencies

Run one of the following depending on your OS of choice. It will package the code into a binary, and drop a .tpp file into the Installers directory

Windows: run npm run build-win

Mac(Intel): coming soon

Mac(Arm64): coming soon

Linux: coming soon

Dependencies

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

License

This project is licensed under the MIT license - see the LICENSE file for details

Bugs/Enhancements

Use the Github Issues tab to report any bugs/enhancements for this plug-in. Or mention them in the Official Touch Portal discord channel #message-keypress

Acknowledgements

  1. Thank you to Reinier and Ty the Touch Portal Creators
  2. Thank you to Gitago for testing initially
  3. Thank you to Magicker for additional testing
  4. Thank you to Der Apfelmann, Baby for additional testing of the Rust based version

touchportal_messagekeypress's People

Contributors

spdermn02 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

garyfunk

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.