Setting focus auto-raise and focus auto-raise delay in Windows 7
To control just having auto-focus and auto-raise, type "change how" in the start menu search, select the "Change how your mouse works" item, and check the checkbox for "Activate a window by hovering over it with the mouse".
The delay requires reg tweaking (or a third party program), I believe the key is
HKEY_CURRENT_USER\Control Panel\Desktop\ActiveWndTrkTimeout
If the key doesn't exist, create it as a new DWORD value. Here's the documentation for the key: https://technet.microsoft.com/en-us/library/cc957203.aspx. You also need to log out and in for the changes to take effect.
Note that ActiveWndTrackTimeout
does not appear to affect auto-focus/auto-raise, while ActiveWndTrkTimeout
does.