Results: How would you call a function that simulates key strokes? 

Voters
0 You may not vote on this poll

  • type_keys
    0%
  • press
    0%
  • type
    0%
  • enter
    0%
    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    10sec poll - please reply!


    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':

    Code:
    type(ENTER)
    Code:
    type("Hello World!")
    Code:
    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!
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,856
    Rep Power
    481
    Name the method OIcuqtπ .
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo