fmendes
14 years agoContributor
Notepad + Windows 7 + TestComplete 8.6
I can launch Notepad, access the "Edit" windows, read and write without problems. When I try to close notepad I get another window asking if I want to save or not, which I run the following command to no success. Any help? Thanks in advance!
Aliases.notepad.Window("#32770", "Notepad", 1).Window("DirectUIHWND", "", 1).Window("CtrlNotifySink", "", 8).Window("Button", "Do&n\'t Save", 1).ClickButton();
It hangs trying to find the "Button" window.