Send text using commands via simple cmds#69
Closed
thomasm789 wants to merge 31 commits into
Closed
Conversation
…lso setting friendly names
…ys and appslist.json file
zehnm
requested changes
May 7, 2025
|
|
||
| # Map the command: space gets ' ', others get lowercase letter | ||
| command_value = " " if char == " " else char.lower() | ||
| select_profile.command_map[command_name] = Command(command_value, 'TEXT') |
Contributor
There was a problem hiding this comment.
This should be of type KeyPress IntEnum. Please enhance KeyPress with TEXT = 5
| :return: OK if scheduled to be sent, other error code in case of an error | ||
|
|
||
| """ # noqa | ||
| if action == 'TEXT': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Application list + ADB is included in this branch (merge PR #68 first)
This PR introduces an interim solution for on-screen text input using AndroidTVRemote2 package for near instant response (does not use ADB). It includes support for the full English alphabet, space, and backspace commands. In the future, this implementation will need to be refactored at a later date to conform with native text entry once supported.
I also cleaned up location for all certs to be in one place and updated the deletion/removal device process to remove the certs.
What's Included:
Dynamic command mapping for:
TEXT_A to TEXT_Z: Sends lowercase letters using the 'TEXT' command type
TEXT_SPACE: Sends a space character (' ')
TEXT_BACKSPACE: Sends KeyCode.DEL via 'KEY' command type to simulate backspace
Usage Notes:
To use these commands:
Create a new text/icon widget
For text input, label the widget with "A" and set the command to "TEXT_A", "TEXT_B", etc., accordingly
Use "TEXT_SPACE" for space and "TEXT_BACKSPACE" for character deletion.
Example:
