I am trying to make a script to alt tab every X seconds to a specified application window but so far I just managed to make one that alt tabs my 2 most recent tabs, can anybody help me with how i make it to alt tab me to a process name or window application name?
while($true){ Add-Type -AssemblyName System.Windows.Forms [System.Windows.Forms.SendKeys]::SendWait('%{TAB}') sleep 5 }