Coder Social home page Coder Social logo

awake's Introduction

Awake

To keep the computer from sleeping

If your work-computer sleeps and shows Away status if you don't interact with it within every 5 minutes or so, here's a solution.

Possible Approaches

Generally this can easily be done by tweeking some settings or running a windows batch or powershell script. But they both require administrative access to install prerequisites or to paste them in windows folder.

Solution

So here's a solution, the script itself is awake.py, that is a pretty straightforward script and explains what it is doing. The real problem is to run it as there is not Python (Python3) or any library installed.
This can be done by making this script an executable file awake.exe with Python Interpreter along with all the libraries and dependencies pre-loaded in folders. That is what is done here.
This script is tuned for 2 minutes (120 seconds) and it moves the cursor to 4 coordinates, and presses shift key (That doesn't do anything) after each 120 interval.

Changes

To make any changes to the script, directly making them in awake.py will do nothing as its sole purpose is to show you what is being done. So, you will have to make changes to awake.py and again convert it to executable again.
Note: Make sure to delete everything except awake.py before doing it!

Author

Muhammad Usman Naeem

github.com/Usman-Naeem

awake's People

Contributors

muhammadusmannaeem avatar

Stargazers

 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.