The AccViewer window shows the 'site.com says:' text in the 'Name' field, suggesting you should be able to retrieve the text from the window using Acc or possibly other means, to confirm it's the right window.
So something like this might work:
Code: Select all
q::
WinGet, hWnd, ID, A
oAcc := Acc_ObjectFromWindow(hWnd)
MsgBox, % oAcc.accName(0)
oAcc := ""
WinGetText, vText, % "ahk_id " hWnd
MsgBox, % vText
return
If you can identify the window, then to finish you need to close the window. Perhaps by working out the 'path' to the Close button, e.g. see the numbers at the bottom of the AccViewer window, and using the path with:
oAcc := Acc_Get("Object", vAccPath, 0, "ahk_id " hWnd)
or:
oAcc := Acc_Get("Object", vAccPath, 0, "ahk_id " hCtl)
and doing
oAcc.accDoDefaultAction(0) on the button.
You can specify a 'path' for Acc_Get, relative either to the main window's hWnd, or to a control's hWnd.
[EDIT:] Btw the question states that WinKill isn't working, does nothing happen, does it close the wrong window? What method did you use to identify the window to close in the past, what happens this time?
[EDIT:] Is the issue that the website url has changed? From 'www.' to 'www15.'?