10 sec poll - please reply!

mherrmann.at at gmail.com mherrmann.at at gmail.com
Tue Nov 20 17:29:57 CET 2012


That's a very good suggestion Emile!! So I might eventually need both 'press' and 'release' (or press_key/release_key). Thanks for this!

To everyone else who has been so kind to reply thus far: What do you think of generate_keystrokes? It's a bit long but describes exactly what the function would be doing. 

All of you are a great help and I really appreciate it. Thank you!

Michael

On Tuesday, 20 November 2012 17:21:38 UTC+1, emile  wrote:
> On 11/20/2012 04:18 AM, Michael Herrmann wrote:
> 
> > Hi,
> 
> >
> 
> > I'm developing a GUI Automation library (http://www.getautoma.com) and am having difficulty picking a name for the function that simulates key strokes. I currently have it as 'type' but that clashes with the built-in function. Example uses of 'type':
> 
> >
> 
> > type(ENTER)
> 
> >
> 
> > type("Hello World!")
> 
> >
> 
> > type(CTRL + 'a')
> 
> >
> 
> > What, in your view, would be the most intuitive alternative name?
> 
> >
> 
> > Here are my thoughts so far: I could call it 'press'
> 
> 
> 
> I have several tools that distinguish between press and release for 
> 
> this.  You may want to consider having both.
> 
> 
> 
> Emile



More information about the Python-list mailing list