GithubHelp home page GithubHelp logo

qc20 / mouser-nosleep-pc-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 26 KB

A simple Python that will ensure that your work computer never goes to sleep.

Python 100.00%
executable help mousemove mouser no-sleep work

mouser-nosleep-pc-app's Introduction

Mouser: Activity Simulator

This simple Python program, Mouser App, is designed to simulate mouse activity to prevent your computer from going into sleep mode. It's particularly useful when you want to keep your work computer active without having to restart it repeatedly.

Table of Contents

Introduction

When you're working on your computer and don't want it to go into sleep mode, you can use this program to simulate mouse activity. It moves the mouse cursor in a square pattern, right-clicks, and then waits for a specified duration before repeating the process. This activity keeps your computer awake and prevents it from going to sleep.

Prerequisites

Before using this program, make sure you have the following installed on your computer:

  • Python (This program was developed with Python 3. You can check your Python version by running python --version.)

You'll also need to install a few Python packages using pip:

  • tkinter: This is typically included with Python but may need to be installed separately in some cases.
pip install tk
pyautogui: A Python library to control the mouse and keyboard.
pip install pyautogui

Usage

  • Run the program by executing the following command in your terminal or command prompt:
python main.py
  • The application window will appear.

  • Click the "Start" button to begin simulating mouse activity. The program will move the mouse cursor in a square pattern and right-click, preventing your computer from going to sleep.

  • To stop the activity, click the "Stop" button.

  • You can adjust the mouse movements and sleep duration in the code to suit your preferences.

Setup.py file

The setup.py script is used for packaging and distributing Python code. In this setup configuration, it utilizes cx_Freeze to create an executable version of the mouser.py script. This allows for easy distribution and execution of the Python script as a standalone application across various platforms.

License

Feel free to use, modify, and share this program as needed to keep your computer active and prevent it from going into sleep mode during your work sessions. If you encounter any issues or have suggestions for improvements, please open an issue on this GitHub repository.

mouser-nosleep-pc-app's People

Contributors

qc20 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.