Skip to content

Instantly share code, notes, and snippets.

@JonTheNiceGuy
Created November 20, 2015 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonTheNiceGuy/d8d60faa8184a360f381 to your computer and use it in GitHub Desktop.
Save JonTheNiceGuy/d8d60faa8184a360f381 to your computer and use it in GitHub Desktop.
Need something to rotate around windows on your Windows Desktop or RDP screen? This will do it! :) Requires AutoHotKey
InputBox, Sleep_Period, Alt-Tab-Script, How long do you want to wait between alt-tab - default 1 minute, , , , , , , , 1
InputBox, Number_Windows, Alt-Tab-Script, How many windows (max 6), , , , , , , , 3
SleepTime := ((Sleep_Period * 60) * 1000)
MsgBox, Sleeping %SleepTime%
Loop {
sleep, %SleepTime%
if Number_Windows = 2
{
Send, {alt down}{tab}{alt up}
}
if Number_Windows = 3
{
Send, {alt down}{tab}{tab}{alt up}
}
if Number_Windows = 4
{
Send, {alt down}{tab}{tab}{tab}{alt up}
}
if Number_Windows = 5
{
Send, {alt down}{tab}{tab}{tab}{tab}{alt up}
}
if Number_Windows = 6
{
Send, {alt down}{tab}{tab}{tab}{tab}{tab}{alt up}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment