Code: Select all
SetTitleMatchMode, 2
Loop {
Sleep 100
ifWinExist, AutoCAD, Save, {
WinActivate, AutoCAD, Save,
Send, n
return
}
ifWinExist, Autodesk Inventor Professional, Save, 2023, {
WinActivate, Autodesk Inventor Professional, Save, 2023,
Send, n
return
}
}
I want it to hit 'n' when either Inventor or AutoCAD pop up asking if I'm sure I want to save. If I can't make that happen with ifWinExist, can I do so with something like:
WinWait, , Save, 2023
?