crystal-autogui
crystal-autogui
GUI Automation Functionality for Crystal by linking with X11 C bindings.
Installation
-
Add the dependency to your
shard.yml
:dependencies: crystal-autogui: github: hrichharms/crystal-autogui
-
Run
shards install
Building C Object Files
Since crystal doesn't have native bindings to the required header files, crystal-autogui requires linked C code. In order to link the X11 api-interacting C code with the crystal code, the c source file must be compiled to object files as follows:
screen.c -> screen.o
gcc -c screen.c -o screen.o -lX11
mouse.c -> mouse.o
gcc -c mouse.c -o mouse.o -lX11 -lXtst
keyboard.c -> keyboard.o
gcc -c keyboard.c -o keyboard.o -lX11 -lXtst
Contributing
- Fork it (https://github.com/your-github-user/crystal-autogui/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
TODO List
- Automatic string writing
- Character to Key-code mapping for easier keyboard function use
- Mouse scrolling
- Pixel checking
Repository
crystal-autogui
Owner
Statistic
- 2
- 0
- 0
- 0
- 0
- about 4 years ago
- April 23, 2021
License
MIT License
Links
Synced at
Mon, 07 Jul 2025 01:14:06 GMT
Languages