Path: csiph.com!usenet.pasdenom.info!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.033 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'much!': 0.05; 'windows,': 0.09; 'cc:addr:python-list': 0.10; 'gui': 0.11; 'library': 0.15; "chris'": 0.16; 'clashes': 0.16; 'overloaded': 0.16; 'world!")': 0.16; 'wrote:': 0.17; 'instance': 0.17; 'url:com)': 0.22; 'cc:2**0': 0.23; 'example': 0.23; 'cc:no real name:2**0': 0.24; 'command': 0.24; 'allows': 0.25; '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; "doesn't": 0.28; 'developing': 0.28; 'reply.': 0.28; 'name?': 0.29; "i'm": 0.29; 'function': 0.30; 'file': 0.32; 'could': 0.32; 'automation': 0.33; 'function.': 0.33; 'picking': 0.33; 'word.': 0.33; 'hi,': 0.33; 'built-in': 0.35; 'michael': 0.36; 'tool': 0.36; 'but': 0.36; 'thank': 0.36; 'too': 0.36; 'display': 0.36; 'uses': 0.37; 'rather': 0.37; 'subject:: ': 0.38; 'things': 0.38; 'received:192': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'most': 0.61; 'here': 0.65; 'our': 0.65; 'difficulty': 0.65; 'header:Reply-To:1': 0.68; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'saw': 0.75; 'click': 0.76; 'mistaken': 0.84 Date: Tue, 20 Nov 2012 08:39:43 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-Version: 1.0 To: Michael Herrmann Subject: Re: 10 sec poll - please reply! References: <3d71f175-164e-494c-a521-2eaa5679b524@googlegroups.com> In-Reply-To: <3d71f175-164e-494c-a521-2eaa5679b524@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:UL4trGl/FOqNf6af+jUDdO6e09DupESCC+8+mNrxGYU /Tk9HwVS45BR7jtUSUPx1Gm+VQRdDwuIKoO8Y21MpF2B6IOiw+ lTZosgTk1hsZHAkt0/uPKhLytEkiXvW1GuXuwOnTdNCfNvQxbg PSIx3vnBWIu7uXcyUsvwmDaEmF5TIjRuj7mHpLZTE/Ctf6o0TF Ih9sITcv7hHbu9m+PSI+LBIokLxVwgaFaWZo8EImTr1oJPG/Kg 4ISzdldj6Tf05FBBpx4SLngXKFo5d6otIrOUKd24Pq6lDo6Wrb +2wOfZnzDRj5MiyXGT6hxY3IWfMSzSm8xVrUAA3vS8DYxhPKjF XLqJhEclaVBivnTtxQjU= Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: davea@dejaviewphoto.com List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 23 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1353418804 news.xs4all.nl 6858 [2001:888:2000:d::a6]:48939 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:33610 On 11/20/2012 07: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' but then our GUI automation tool also allows you to click things and then "press" might be mistaken for "pressing a button". A less ambiguous alternative is "type_keys" but that is rather long and doesn't read as well, for instance in type_keys(ENTER). > > Thank you very much! I also vote for send_keys(), even before I saw Chris' reply. 'type' is too overloaded a word. For example, in Windows, it's the command to display the contents of a file - it types it to the screen.