Search code examples
pythonvariablespywinauto

How to make pywinauto faster (keyboard.send_keys)?


pwa.keyboard.send_keys ("StackOverflow")

with this code, the text is printed 1 letter at a time (long)

how to make it so that the text is entered completely at once? (works with 1000+ variables)


Solution

  • You should be able to change the optional parameter pause to zero like this:

    pwa.keyboard.SendKeys("StackOverflow", pause=0)
    

    There are more details on this here