Forum Discussion

Montikore's avatar
Montikore
Occasional Contributor
9 years ago

How to enter text in the windows 10 search bar?

Hi,

 

I want to enter text in the search bar (windows 10), but whatever i tried failed. Even when recording a new script, the action of typing the text is not caught. When using the object spy, the object is not seen...

Any help welcome :)

 

Thanks

  • Sys.Desktop.Keys("[Win]SomeKeysToTypeIntoSearch");

    Hope this helps.

  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor
    Sys.Desktop.Keys("[Win]SomeKeysToTypeIntoSearch");

    Hope this helps.

  • Montikore's avatar
    Montikore
    Occasional Contributor

    Yes it works! Thanks!

    but very slow... i'm using the same .Keys() function in other places, the typing is pretty fast. Do you have an idea why?

     

    • Ryan_Moran's avatar
      Ryan_Moran
      Valued Contributor

      This was somewhat slow on my PC as well. It seems to be a performance issue with TestComplete.