10 sec poll - please reply!

MRAB python at mrabarnett.plus.com
Tue Nov 20 16:59:44 CET 2012


On 2012-11-20 15:18, Michael Herrmann wrote:
> Thanks again for your further replies. So far, it's 4 votes for 'send_keys' and 1 vote for 'type'.
>
> Regarding 'send_keys': To me personally it makes sense to send keys _to_ something. However, in our API, send_keys would not be called on an object or with a parameter indicating the target. It would just be
>
> send_keys(ENTER)
> send_keys("Hello World!")
> send_keys(CTRL + 'a')
>
> Does that change your preference for 'send_keys'?
>
Calling it "send_keys" does have precedent.

There's a module called SendKeys which uses the SendKeys system call in
Windows. Unfortunately, the last version was for Python 2.6.

When I wanted the functionality for Python 3.3 I had to write my own.


More information about the Python-list mailing list