ekiza23
11 years agoContributor
Problem with 'Keys' method within Script Extensions
I have created a function to be in a Script Extension. In it, after entering some values in a text field, there is a call to click the "Enter" key
Call embeddableTextBoxWithUIPermissions.Keys(menuNumber)
Call Sys.Desktop.Keys("[Enter]")
When executing the function as is, it works just fine. But when I put it into the Script Extension and call it from my scripts, the value is typed into the text field, but the "Enter" command seems to be ignored.
I have also tried (to no avail)
Call embeddableTextBoxWithUIPermissions.Keys(menuNumber)
Call embeddableTextBoxWithUIPermissions.Keys("[Enter]")
and
Call embeddableTextBoxWithUIPermissions.Keys(menuNumber & "[Enter]")
It always enters the menuNumber, so I know that the script extension is being called and the Keys function somehow works, but it seems to have troubles with the "[Enter]" part of it.
I am using TestComplete 9.31.3889.7 and the extensions and scripts are all in VBScript.
Call embeddableTextBoxWithUIPermissions.Keys(menuNumber)
Call Sys.Desktop.Keys("[Enter]")
When executing the function as is, it works just fine. But when I put it into the Script Extension and call it from my scripts, the value is typed into the text field, but the "Enter" command seems to be ignored.
I have also tried (to no avail)
Call embeddableTextBoxWithUIPermissions.Keys(menuNumber)
Call embeddableTextBoxWithUIPermissions.Keys("[Enter]")
and
Call embeddableTextBoxWithUIPermissions.Keys(menuNumber & "[Enter]")
It always enters the menuNumber, so I know that the script extension is being called and the Keys function somehow works, but it seems to have troubles with the "[Enter]" part of it.
I am using TestComplete 9.31.3889.7 and the extensions and scripts are all in VBScript.