Could you please help me with a way to select "Yes" in the prompt mentioned in the attached screenshot?
I have tried the below script and it didn’t work
Code: Select all
SetTimer, dontsave, 5000
dontsave:
WinActivate, Microsoft Excel ahk_class NUIDialog
loop
{
Sleep, 500
ControlSend, !y, Microsoft Excel
ControlSend, !c, Microsoft Excel
Sleep, 156
}
return