I'm trying to do something that seems like it should be simple, and it proving frustratingly difficult. I am trying to detect the following popup, and click "no" when that popup - and ONLY that exact popup with that exact text - appears.
Unfortunately, WindowSpy does not seem to be able to detect the text associated with an ahk_class TMessageForm dialog.
Here is the prompt:
Here is what WindowSpy says about the prompt:
And here is some code that does NOT work:
Code: Select all
IfWinExist, Confirmation, Do you want to update the promo at all locations?
MsgBox % "Victory is mine!"
MsgBox % "Sad panda noises."
This results in sad panda noises. If I match only to the WinTitle, Confirmation, it works, but then it triggers for every Windows confirmation dialog, not just the one I want to target.