11-21-2016, 09:12 PM
I found a workaround.
I used this code:
I set the focus in a WpfEdit, I pressed two times the tabs button for move the focus in APPLY button, then I pressed ENTER.
Maybe someone helpful to someone.
Thanks a lot.
I used this code:
Code:
WpfWindow("myApp").WpfEdit("txtComments").Set ""
Set WshShell = CreateObject("WScript.Shell")
wait 2
WshShell.SendKeys "{TAB}"
wait 1
WshShell.SendKeys "{TAB}"
wait 1
WshShell.SendKeys "{ENTER}"
I set the focus in a WpfEdit, I pressed two times the tabs button for move the focus in APPLY button, then I pressed ENTER.
Maybe someone helpful to someone.
Thanks a lot.