Code: Select all
WinWaitActive, Confirm Save As,, 3
if ErrorLevel
{
MsgBox, Win Not exists
return
}
else
MsgBox, Win exist
Return
In the code snippet above. MsgBox, Win Not exists always triggers
Thank you!
Code: Select all
WinWaitActive, Confirm Save As,, 3
if ErrorLevel
{
MsgBox, Win Not exists
return
}
else
MsgBox, Win exist
Return
I see nothing in your code that would do that.It will not activate the small confirm save as box
Oh, that was the window I was primarily programing for(The save as... Dialog). I later on realised I would encounter use cases where I msgbox would pop up asking if I wanted to overwrite a file. So I copied what I had already written and tried to repurpose it for the overwrite dialog.gregster wrote: ↑24 Jun 2021, 00:51So, it always times out. The question is: what happens before this line?I see nothing in your code that would do that.It will not activate the small confirm save as box
But doesn't it activate automatically, once it appears?
(There is a commented out WinActivate, Save As line (not Confirm Save As) in your picture - wrong wintitle? wrong title match mode? What's the intention?)
Users browsing this forum: NinjoOnline and 226 guests