I have two simple workarounds for today's problem, but I am willing to spend an hour looking for a better approach. After that I will give up.
Answers such as "switch from w7/IE8 to w10/IE11" will not be considered.
Our office has a customized windows 7 desktop (named Office1) which is entirely dedicated to running a weekly script named Weekly.au3.
The script uses internet explorer 8 to download hundreds of webpages into a database, so it runs about 8 hours.
Every Saturday morning at home I use my Windows 10 laptop (named MyLaptop) and mstsc to log into the office desktop. I start the script then go way until Sunday morning when I check for successful completion.
There is one very annoying problem: I must leave the mstsc window opened and maximized on MyLaptop.
If I minimize the window, or close the window the Office1 script hangs, and does not resume until I reconnect using mstsc.
I threw in some debugging statements and found that the hang occurs during the _clickIE statment below. While this code is in AutoIt, I am pretty sure the same problem would occur with AutoHotkey or other scripting tools.
consolewrite(_CurrentTime("-", ":") & "line1"&@CRLF)
consolewrite(_CurrentTime("-", ":") & "line2"&@CRLF)
_ClickIE($WinTitleDownload, "", @OSVersion)
consolewrite(_CurrentTime("-", ":") & "line3"&@CRLF)
My "simple" workaround #1 is to use GotoMyPC to connect instead of MSTSC.
Workaround #2 is to first use mstsc to connect MyLaptop to another office computer named "OfficeMary". Then I "daisy chain" from OfficeMary to Office1.
There is a very annoying quer