Forum Discussion

fmendes's avatar
fmendes
Contributor
14 years ago

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.

1 Reply

  • Hello Luis,



    Try replacing the mentioned code line with the Alt-n shortcut pressing simulation: