Keep Microsoft Teams Alive using Python script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KayQ
    New Member
    • Jul 2022
    • 1

    Keep Microsoft Teams Alive using Python script

    Use pip to install the Clicknium lib:

    Code:
    pip install clicknium
    Use the following Python script:

    Code:
    from time import sleep
    import math
    from clicknium import clicknium as cc
    def circle():
        a,b = cc.mouse.position()
        w = 20  
        m = (2*math.pi)/w 
        r = 200      
    
        while 1:    
            for i in range(0, w+1):
                x =int( a+r*math.sin(m*i))  
                y = int(b+r*math.cos(m*i))
                cc.mouse.move(x,y)
                sleep(0.2)
    
    if __name__ == "__main__":
        circle()
    This script will control the mouse to move along the circle.

    You can use this Python package to control your mouse and keyboard to automate routine work. It is far more powerful than that and can simulate people to control applications and web browsers. The VS code extension is easy to use.
Working...