Giter Site home page Giter Site logo

espin086 / rodents Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 46 KB

A Python CLI (Command Line Interface) that jiggles the mouse to simulate activity. This tool can be used to make it appear as if you are actively using your computer, even when you are not.

License: MIT License

Python 96.40% Makefile 3.60%

rodents's Introduction

๐Ÿ€ rodents

๐Ÿ€ rodents is a command line tool that moves the mouse cursor randomly on the screen and performs random actions such as switching tabs or clicking on buttons. It is designed to simulate user activity and prevent screensavers or idle timeouts from activating.

๐Ÿ“‹ Requirements

๐Ÿš€ Installation

You can install ๐Ÿ€ rodents using pip:

pip install rodents

๐Ÿ–ฑ Usage

To use ๐Ÿ€ rodents, you can run the following command:

rodents --delay_mean <mean> --delay_std_dev <std_dev> --move_duration <duration>

This will make the movements of your mouse delayed in a way that follows a normal distribution so that there are no fixed intervals of movements to make it appear more human.

Alt

๐Ÿ’ก PROTIP: best if you open up a single browser with multiple tabs you want the program to cycle through.

The available options are:

  • --delay_mean: Mean value for the delay pressing of keys in seconds. Default is 12.
  • --delay_std_dev: Standard deviation for the delays. Default is 6.
  • --move_duration: Duration of the mouse movement in seconds. Default is 0.5, this seems to look most natural.

For example, to run ๐Ÿ€ rodents with a mean delay of 10, standard deviation of 5, and a movement duration of 1 second, you can use the following command:

rodents --delay_mean 10 --delay_std_dev 5 --move_duration 1

๐Ÿ›‘ Stopping ๐Ÿ€ rodents: press Ctrl + C in your terminal (Mac) or other similar hot-key to stop terminal execution.

๐Ÿšจ Disclaimer

๐Ÿ€ rodents is intended for educational and testing purposes only. It should not be used for any malicious activities. The developers of rodents are not responsible for any misuse or damage caused by this tool.

License

๐Ÿ€ rodents is released under the MIT License.

๐Ÿค Contributing

Thank you for considering contributing to ๐Ÿ€ rodents! We welcome any contributions that can help improve the project and make it even more useful.

To contribute to ๐Ÿ€ rodents, please follow these steps:

  1. Find an issue you want to work on here and comment on issue stating your desire to work on it, wait for moderator response Or create an issue for a new feature and wait for moderator response.
  2. Fork the repository on GitHub.
  3. Clone your forked repository to your local machine.
  4. Create a new branch for your contribution.
  5. Make your changes and improvements to the codebase.
  6. Test your changes thoroughly.
  7. Commit and push your changes to your forked repository.
  8. Submit a pull request to the main repository.

Please ensure that your code follows best practices and is well-documented. We appreciate detailed commit messages and clear explanations of the changes you have made.

By contributing to ๐Ÿ€ rodents, you agree to release your contributions under the MIT License.

rodents's People

Contributors

espin086 avatar

Watchers

 avatar  avatar

rodents's Issues

Automatic Mouse Jiggler with Inactivity Detection and Work Hour Limitation

Description:

  1. Feature: Automatic Activation and Shutdown

    • The mouse jiggler should automatically turn on after a period of inactivity and shut down when it detects activity.
    • This feature ensures that the mouse jiggler is only active when needed, conserving power and preventing unnecessary movement.
  2. Feature: Work Hour Limitation

    • Implement a bound on the work hours for the mouse jiggler to move.
    • This feature will prevent the mouse jiggler from operating beyond a specified time limit, ensuring it adheres to work hour restrictions.

Please let me know if you need any further information or if there are any specific requirements for this GitHub issue.

Make Windows Compatible

ere's the modified code that works on both MacOS and Windows:

import platform

# ...

def switch_to_next_tab(x, y, duration):
    """
    Function to switch to the next tab.
    """
    if platform.system() == "Darwin":
        pyautogui.hotkey("command", "shift", "[")
    elif platform.system() == "Windows":
        pyautogui.hotkey("ctrl", "tab")


def switch_to_previous_tab(x, y, duration):
    """
    Function to switch to the previous tab.
    """
    if platform.system() == "Darwin":
        pyautogui.hotkey("command", "shift", "]")
    elif platform.system() == "Windows":
        pyautogui.hotkey("ctrl", "shift", "tab")

# ...

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.