Skip to content

Commit

Permalink
Merge pull request #100 from aloner-pro/master
Browse files Browse the repository at this point in the history
Added noscreensaver script
  • Loading branch information
DhanushNehru committed Oct 16, 2022
2 parents f043ef9 + a5fe977 commit df15c5f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Noscreensaver/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

# Noscreensaver

* While writing from a pdf on our computer after sometime we need to move the mouse in order to prevent the screensaver from being turned on.
* Or sometimes when the user needs to keep the computer always engaged.
---
#### We can use this then.


## Run Locally

Just copy the code and ensure you have pyautogui installed.

If not then you can install by

` pip install pyautogui `

To close the program if run from terminal press `Ctrl+C` or if from IDLE then just simply close the interface.
9 changes: 9 additions & 0 deletions Noscreensaver/noscreensaver.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import pyautogui

# A infinite loop
while 1>0:
# makes the mouse sleep or wait for 40 seconds
pyautogui.sleep(40)
# clicks about in the corner of the screen like
# on the co-ordinates of (50,400)
pyautogui.click(50,400)

0 comments on commit df15c5f

Please sign in to comment.