-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #100 from aloner-pro/master
Added noscreensaver script
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |