I would like to refresh a window on a set interval (like browser extensions do). Is there an AUTOHOTKEY solution to sending F5 (or other keystrokes) to an inactive window (non-browser app)?


#Persistent
SetTitleMatchMode, 2
WindowMatchText := "Notepad"
RefreshInterval := 2000 ; Milliseconds.
SetTimer, WindowRefresh, % RefreshInterval
Return ; End of auto-execute section.
WindowRefresh:
{
ControlSend, , {F5}, % WindowMatchText
}
ReturnOriginal address: https://www.donationcoder.com/forum/index.php?topic=29728.0