Skip to content

ThetaSinner/auto-typer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-typer

A utility for automatically typing text.

Building the project

CLI only (Window and Linux)

To build the CLI only you can just build the Rust portion of the project

cargo build --release

MacOS app

For any API changes you need to re-generate the cbinding/autotyper.h header by doing

cd cbinding
cargo install --force cbindgen
cbindgen --config cbindgen.toml --crate cbinding --output autotyper.h
cd ..
cargo build --release

Otherwise you can just build the static C library

cargo build --release

Then you can build the app by opening auto-typer-macos in XCode and following these steps

  1. Product -> Archive
  2. Distribute App -> Copy App -> Next
  3. Choose a directory to copy to
  4. Copy the app from the output directory to the Applications directory
  5. System Settings -> Privacy and Security -> Accessibility -> +
  6. Find the auto-typer app in Applications

The application is then ready to use.

Note the application cannot be used properly in a debug build through XCode because you need accessibility permitted for the app. You can use all features other than the keyboard shortcut.

Testing the cbinding library

cd cbinding
cargo build --release --lib
clang -framework CoreFoundation -framework CoreGraphics -L ../target/release -lautotyper test.c -o test.out
./test.out

Press Ctrl+C to tidy up your prompt after the program finishes typing.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published