Results 1 to 6 of 6

Thread: Can GUI appications be automated through scripts?

  1. #1
    Join Date
    Jul 2012
    Beans
    22

    Question Can GUI appications be automated through scripts?

    Say we have a GUI applications that has an input field. Is it possible to access this input field with another application? The GUI application doesn't have a CLI version
    I am asking in the Ubuntu forums and not in programming forums because I think it must be something OS specific.

    Thanks!

  2. #2
    Join Date
    Dec 2004
    Beans
    20

    Re: Can GUI appications be automated through scripts?

    more Windowing System and Toolkit specific.

    If you can pull up a window name from a window list; switch focus; shift field focus and stuff keys; then you can do this. Problems may arise with, for example, knowing where focus is (i.e. in the wrong text box) before hand. It'll probably be different between Metacity/KDE/sawmill and between GTK/QT.

  3. #3
    Join Date
    Oct 2011
    Location
    Oregon
    Beans
    32
    Distro
    Ubuntu Development Release

    Arrow Re: Can GUI appications be automated through scripts?

    Why specifically would this be of interest may I ask?

  4. #4
    Join Date
    Aug 2008
    Beans
    19

    Re: Can GUI appications be automated through scripts?

    The short answer is yes, because that's what automated testing software has to do.

    The long answer is - you didn't explain what you wanted to accomplish (the what). Instead, you asked for the technical solution (the how). If you aren't using this to test your software, you are probably asking for a very bad, flakey, frustrating solution. The kind that keeps you busy fixing it, over and over again, for years to come.

    CLI or API will serve you better.

  5. #5
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Can GUI appications be automated through scripts?

    Moved to General Help, as it has nothing to do with the threads it was in.

  6. #6

    Re: Can GUI appications be automated through scripts?

    ...The GUI application doesn't have a CLI version
    ...
    I'd be surprised if it didn't.
    It may help us to know what program you are referring to...
    It may be possible to pass arguments to the "GUI application"

    Please let us know...
    Windows assumes the user is an idiot.
    Linux demands proof.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •