Go-TextType

command module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2023 License: Unlicense Imports: 10 Imported by: 0

README

Go-TextType

[!NOTE] Download the latest version from the release page and run the executable.

Icon

This program is designed to print text from the clipboard using Keyboard events. Password entry into console applications is enabled by this feature. Version 1.1 adds the ability to remove whitespace from the clipboard and pressing entered after the input is entered. With version 0.1.2 you can switch the hotkey between:

  • ISO Layout: left ctrl + left shift + v
  • DE Layout: links strg + links shift + v
    or
  • ISO Layout: left ctrl + left alt + s
  • DE Layout: links strg + links alt + s
    or
  • ISO Layout: left ctrl + Q
  • DE Layout: links strg + Q

The HotKey is stored in a file called hotkey.gob within the same folder you run the application.

If you need any additional HotKey, please contact me or create an issue on GitHub.

This project contains a program implemented in Go (version 1.21) using the Go SDK (version 1.21.1). It is designed to print text from the clipboard using Keyboard events.

Functionality

The main functionality of this program is as described: The application is designed to print the text stored in the clipboard. It achieves this by calling a hotkey combination that triggers a function in the program. This triggered function fetches the content from the clipboard and prints it on the console.

Dependencies

The required Go packages for this project to function include:

  • embed for embedding files in executable.
  • encoding/gob for encoding the hotkey to a file
  • github.com/getlantern/systray for system tray functionality.
  • github.com/go-vgo/robotgo for simulating keyboard inputs.
  • golang.design/x/clipboard for access to the system clipboard.
  • golang.design/x/hotkey for creating and managing hotkeys.

Running the Program

Download the latest version of the application from the release page.

Compilation

Download the code from GitHub and run the compilation on Windows:

go build -ldflags '-extldflags "-static" -w -s -H windowsgui -X main.AppVersion=VERSION -X main.BuildID=BUILDID' .

Troubleshooting

The program logs the current version of the application, and the Build ID in its log file TextType.log. You may refer to this file for troubleshooting and referencing specific versions of the application.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL