Path: csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.077 X-Spam-Evidence: '*H*': 0.85; '*S*': 0.00; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'gui': 0.11; 'library': 0.15; 'both.': 0.16; 'clashes': 0.16; 'world!")': 0.16; 'wrote:': 0.17; '(or': 0.18; 'bit': 0.21; 'url:com)': 0.22; 'cc:2**0': 0.23; 'example': 0.23; 'thus': 0.24; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header :User-Agent:1': 0.26; 'am,': 0.27; 'subject:please': 0.27; 'thoughts': 0.27; 'developing': 0.28; 'received:209.85.212': 0.28; 'name?': 0.29; 'this.': 0.29; "i'm": 0.29; 'function': 0.30; 'suggestion': 0.32; 'could': 0.32; 'automation': 0.33; 'function.': 0.33; 'picking': 0.33; 'everyone': 0.33; 'hi,': 0.33; 'received:google.com': 0.34; 'thanks': 0.34; 'built-in': 0.35; 'received:209.85': 0.35; 'really': 0.36; 'michael': 0.36; 'but': 0.36; 'thank': 0.36; 'skip:p 20': 0.36; 'uses': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'several': 0.39; 'release': 0.39; 'help': 0.40; 'think': 0.40; 'your': 0.60; 'from:no real name:2**0': 0.60; 'most': 0.61; 'kind': 0.61; 'between': 0.63; 'great': 0.64; 'here': 0.65; 'difficulty': 0.65; 'reply': 0.66; 'press': 0.71; 'distinguish': 0.84; 'received:209.85.212.56': 0.91; 'this!': 0.93 Newsgroups: comp.lang.python Date: Tue, 20 Nov 2012 08:29:57 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=80.109.122.186; posting-account=MEGbygoAAABqPFKPeXuFLC8wmXGtV5oo References: <3d71f175-164e-494c-a521-2eaa5679b524@googlegroups.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 80.109.122.186 MIME-Version: 1.0 Subject: Re: 10 sec poll - please reply! From: mherrmann.at@gmail.com To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 47 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353429000 news.xs4all.nl 6872 [2001:888:2000:d::a6]:47835 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33636 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