├── .gitignore ├── icon.ico ├── README.md └── teams-auto-degrade.py /.gitignore: -------------------------------------------------------------------------------- 1 | .idea -------------------------------------------------------------------------------- /icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Gobidev/teams-auto-degrade/main/icon.ico -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # teams-auto-degrade 2 | A small script to automatically degrade a participant of a teams meeting with a hotkey 3 | 4 | ## How to Use 5 | Run the .py or .exe file of the latest release. If you then hover over a participant 6 | of a teams meeting and press f8 it will be automatically degraded. If you are not using teams 7 | in fullscreen on a 1080p monitor you first need to update the position of the confirmation box by 8 | hovering over the confirmation button and pressing shift + f8. The program can be killed by 9 | pressing F7. -------------------------------------------------------------------------------- /teams-auto-degrade.py: -------------------------------------------------------------------------------- 1 | from pyautogui import position, rightClick, moveTo, leftClick 2 | from time import sleep 3 | from keyboard import is_pressed 4 | from sys import exit as terminate 5 | 6 | 7 | # position for teams in full screen on 1080p 8 | default_final_pos = 1360, 560 9 | 10 | 11 | def degrade(): 12 | print("Degrading..") 13 | current_x, current_y = position() 14 | rightClick() 15 | moveTo(current_x - 10, current_y - 50) 16 | leftClick() 17 | moveTo(final_pos) 18 | leftClick() 19 | moveTo(current_x, current_y) 20 | print("Done") 21 | 22 | 23 | def update_final_pos(): 24 | global final_pos 25 | current_pos = position() 26 | final_pos = current_pos 27 | print("New Pos:", current_pos) 28 | 29 | 30 | def check_hotkey(): 31 | while 1: 32 | if is_pressed("shift+F8"): 33 | update_final_pos() 34 | sleep(0.1) 35 | elif is_pressed("F8"): 36 | degrade() 37 | elif is_pressed("F7"): 38 | print("Exiting..") 39 | terminate(0) 40 | sleep(0.01) 41 | 42 | 43 | if __name__ == '__main__': 44 | final_pos = default_final_pos 45 | check_hotkey() 46 | --------------------------------------------------------------------------------