How to simulate a key stroke({ENTER} key) in UI Automation on Edit element

Jorge Vieira 0 Reputation points
2023-01-16T20:38:23.9033333+00:00

Hello all,

with UI Automation how can i be granted that my key stroke ({ENTER} key) it is going to be invoked on the edit text element?

The application that i want to automate is expecting a key stroke(enter key) to assume the inputed text. Is that a way to invoke the "pressed {enter} key" on that element without the use of the generic sendinput/sendkeys.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,648 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
{count} votes