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:
- Popup.png (6.82 KiB) Viewed 932 times
Here is what WindowSpy says about the prompt:
- Wspy.png (24.49 KiB) Viewed 932 times
And here is some code that does NOT work:
Code: Select all
^k::
IfWinExist, Confirmation, Do you want to update the promo at all locations?
MsgBox % "Victory is mine!"
else
MsgBox % "Sad panda noises."
return
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.
Any ideas?