Keypress without an object
Is there a way to make Testcomplete press a key, without specifying an object? I want to press Enter on 3 different warning messages, that come one after another. The problem is that the first 2 warning messages have the object name Aliases.sdelki.dlgSdelki and the third is called Aliases.sdelki.dlg_4 and my while loop in my script can't find it. I'm trying to close unwanted popups/warnings, so other solutions are acceptable too.
You can use Keys to simulate typing, but I'm not sure that will do what you want. Pressing a key without an object is like closing your eyes and hoping you tap the right key on the keyboard.
See if this helps