; AutoHotkey v2 script to keep Teams active using mouse movement #SingleInstance Force ; Set the interval (in milliseconds) - 4 minutes (240000 ms) interval := 240000 ; Initialize the timer SetTimer MoveMouse, interval ; Function that moves the mouse slightly and then back MoveMouse() { ; Save the current mouse position MouseGetPos &xpos, &ypos ; Move mouse by 1 pixel right then back to original position ; This version is more reliable as it returns exactly to the starting position MouseMove xpos + 1, ypos Sleep 100 MouseMove xpos, ypos } ; Hotkey to exit the script (Ctrl+Alt+X) ^!x::ExitApp()