Valença
6 years agoOccasional Contributor
Connected Application C# Keys method
Hello,
I created a windows form application (connected application) and im trying to execute the code below:
Sys["Process"]("notepad")["Window"]("Notepad")["SetFocus"](); Sys["Process"]("notepad")["Window"]("Notepad")["Window"]("Edit")["Click"](459, 242);
Sys["Process"]("notepad")["Window"]("Notepad")["Window"]("Edit")["Keys"]("123");
The first and second line run, but i got an exception when trying to send the Keys method.
The exception that is thrown by methods invoked through reflection.
How can i use Keys method on connnected application?
If i execute the code on testcomplete, it runs all lines.