diff options
author | mlot <petri-rush-curvy@duck.com> | 2025-06-06 13:40:57 -0400 |
---|---|---|
committer | mlot <petri-rush-curvy@duck.com> | 2025-06-06 13:40:57 -0400 |
commit | 75a42ec54dbf721caa659ddf02c1f46fc2cb4bef (patch) | |
tree | 84be794a2481e356a7784557a6f9fb6fbf29cfdd /Chap18PracLookingBusy.py |
Diffstat (limited to 'Chap18PracLookingBusy.py')
-rw-r--r-- | Chap18PracLookingBusy.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Chap18PracLookingBusy.py b/Chap18PracLookingBusy.py new file mode 100644 index 0000000..f445645 --- /dev/null +++ b/Chap18PracLookingBusy.py @@ -0,0 +1,19 @@ +#! python3 + +# Chapter 18 Practice Looking Busy +# Moves the mouse cursor ever 15 seconds to trick the computer into +# thinking you are still busy working. + +import time +import pyautogui + + +print('Press CTRL-C to End') + +try: + while True: + pyautogui.moveRel(-100, 0) + pyautogui.moveRel(100, 0) + time.sleep(15) +except KeyboardInterrupt: + print('\nEnded') |