Skip to content

Instantly share code, notes, and snippets.

@Richard-Barrett
Created February 4, 2025 20:25
Show Gist options
  • Select an option

  • Save Richard-Barrett/53abe2d5ee61f37ee3d8439c45fc347b to your computer and use it in GitHub Desktop.

Select an option

Save Richard-Barrett/53abe2d5ee61f37ee3d8439c45fc347b to your computer and use it in GitHub Desktop.
Keep Your MS Teams ICON Green All The Time
#!/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