Forum Discussion

Emerson's avatar
Emerson
Occasional Contributor
6 years ago
Solved

wnd.Keys("112") enters 1122 rather than 112

I have a script that should enter 112 into a text input field but instead it sometimes enter 1122. 

Code looks like this:

wnd.Keys("[BS][BS][BS]112[Enter]");

Sometimes it enters it correctly and other times it just doesnt, the biggest issue with this it crashes our dev build of the software so if I was to run a script overnight then it crashes when it gets to this point then the rest of the script wont run and thats wasted time.

Previous value in the input field so it is clearing the whole text input field before hand.