import pyautogui
import time
def move_mouse():
# Move the mouse a small distance to prevent the screen saver
pyautogui.move(1, 1)
if __name__ == "__main__":
try:
while True:
move_mouse()
time.sleep(60) # Move the mouse every 60 seconds
except KeyboardInterrupt:
print("\nScript terminated by user.")