Created
February 4, 2025 20:25
-
-
Save Richard-Barrett/53abe2d5ee61f37ee3d8439c45fc347b to your computer and use it in GitHub Desktop.
Keep Your MS Teams ICON Green All The Time
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| import pyautogui | |
| import math | |
| def circle(): | |
| a,b = pyautogui.position() | |
| w = 20 | |
| m = (2*math.pi)/w | |
| r = 200 | |
| while 1: | |
| for i in range(w+1): | |
| x = int(a+r*math.sin(m*i)) | |
| y = int(b+r*math.cos(m*i)) | |
| pyautogui.moveTo(x, y, duration = 0.2) | |
| if __name__ == "__main__": | |
| try: | |
| circle() | |
| except KeyboardInterrupt as e: | |
| print("Keep up the good work... ;-)") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment