But my game-monitoring app can no longer close the game windows. Here's the relevant code:
Code: Select all
Close_isN:
Gui +OwnDialogs
MsgBox 0x40004, ,Close_isN, Do you want to close all InnerSpace game windows?
ifMsgBox Yes
{
loop %nAccounts% {
Win := WinIDstr(A_index)
if WinExist(Win)
{
OUTPUTDEBUG,% "ISM: CLOSING " Win
WinClose
}
}
}
NextUpdate := 1
return
Previously, under WIN7, the close messages would cause the game sessions to camp to desktop, exiting the game. Now, under Win10, nothing visible happens in response to the WinClose. If I manually close the game window by right-click on taskbar icon and selecting close, it still works as expected. And other AHK functions such as WinActivate used in a similar loop still work. But the WinClose does nothing.
Any suggestions? Any idea why this might not work?