Giter VIP home page Giter VIP logo

meth's Introduction

Mouse Mover with Termbox Display

This project provides a simple demonstration of utilizing the termbox-go library to display a string message in the center of a terminal while simultaneously using the robotgo library to move the mouse cursor by 1 pixel on the X-axis every second.

Features

  1. Displays a string message at the center of the terminal.
  2. Moves the mouse cursor incrementally every second.
  3. Exits the program when a key is pressed.

Prerequisites

Ensure you have the following dependencies installed:

  • termbox-go: A library for creating cross-platform text-based interfaces.

    go get -u github.com/nsf/termbox-go
  • robotgo: A cross-platform library for GUI automation.

    go get -u github.com/go-vgo/robotgo

Usage

  1. Clone the repository.
  2. Navigate to the project directory.
  3. Run the program:
go run main.go

Once executed, you'll see the message "YOu hIght on MeTHamPhEtamInEs" displayed at the center of your terminal. Simultaneously, the mouse cursor will move by 1 pixel on the X-axis every second.

Press any key to exit the program.

Contribution

Feel free to fork the project, submit PRs, and report issues or suggestions. We always welcome contributions from the community!

License

This project is open-sourced under the MIT License.

meth's People

Contributors

spix-777 avatar

Watchers

 avatar

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.