Forum Discussion

BMD's avatar
BMD
Contributor
4 years ago
Solved

SetText over Keys for speed

Below is a bit of code that types over 4000 characters into the comment field.  I changed the keys to SetText because it takes too long to type the charterers in to the field.  The SetText I thought ...
  • BMD's avatar
    BMD
    4 years ago

    So the Test Complete SetText function simply does not work at all.

    I changed the code to set the Sys.Clipboard to the 4000+ text string and using the Keys("^a[Del]^v") works fine.

    Thank you for trying, BMD

     

  • Marsha_R's avatar
    Marsha_R
    4 years ago

    No, what I mean is set a text variable to some string that is 4000 characters long and just insert that into your field.  There is no need to type 4000 characters separately every time.  Insert the 4000 and then use Keys or SetText to try to type one more in and check to see if it worked.