LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-10-2010, 11:11 AM   #1
helger
LQ Newbie
 
Registered: May 2010
Posts: 4

Rep: Reputation: 0
Controlling a GUI application from a script


Hi

I have the following problem. I have a linux binary for a GUI app. I don't have the source code for it and the author also refuses to make the source code available. The GUI app works like this

1) Open Image File
2) Click on a button to do some image processing
3) Save file

The problem is that I need to do this for > 1000 images... and the app can not be used from the command line. I know the GUI is based on QT. Is there a way to control a GUI applications from a script or other software? Where is a good place to start looking for a solution to this problem?

Regards,
Helge
 
Old 05-10-2010, 11:18 AM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 790Reputation: 790Reputation: 790Reputation: 790Reputation: 790Reputation: 790Reputation: 790
Sounds like you need something like "expect" for a GUI.

In the Wikipedia page for Expect I see this quote:

Quote:
Expect cannot automate GUI based tools. This is generally only a problem on Windows where for many tasks a GUI based interface is the only option. In these situations tools like Autohotkey, AutoIt or Winbatch can be used instead.
I haven't used any of those but a quick perusal of the page for Autohotkey makes it sound like what you need and says it has a Linux version:
http://en.wikipedia.org/wiki/Autohotkey

There are links to the other two in the original article for Expect.
 
Old 05-10-2010, 04:15 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 11,969

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
BeOS used to have one that works but not sure you can port it. I think it was called hey.
 
Old 05-18-2010, 05:20 AM   #4
helger
LQ Newbie
 
Registered: May 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks. Ended up using xmacro.
 
Old 05-18-2010, 07:18 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,043

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
I am not sure what kind of processing did you need, but next time using imagemagick or even the gimp command line interface could save you all the pain.
 
Old 05-18-2010, 07:23 AM   #6
helger
LQ Newbie
 
Registered: May 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks i92guboj

I'll keep that in mind. However, the kind of processing I needed was not available in those packages.
 
Old 05-18-2010, 09:29 AM   #7
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,043

Rep: Reputation: 375Reputation: 375Reputation: 375Reputation: 375
Quote:
Originally Posted by helger View Post
Thanks i92guboj

I'll keep that in mind. However, the kind of processing I needed was not available in those packages.
Out of curiosity, what was that?
 
Old 05-18-2010, 09:35 AM   #8
helger
LQ Newbie
 
Registered: May 2010
Posts: 4

Original Poster
Rep: Reputation: 0
I need to perform tracking of facial features in a movie using Active Appearence Models. The binary tools works fine for training the models, but fails for a movie due to the one-image-at-a-time limitation of the GUI.

The tool is available here http://www.isbe.man.ac.uk/~bim/softw...doc/index.html.
 
  


Reply

Tags
binary, gui, software


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RS232 GUI application SimbadSubZ Linux - Software 2 07-26-2009 01:37 AM
Controlling application running on a virtual desktop Blizz Programming 1 06-20-2009 05:07 PM
[SOLVED] Controlling application crash me_spearhead Linux - General 2 05-04-2009 08:16 AM
C gui application deathalele Programming 3 03-31-2009 05:51 AM
1. shell script "find and replace" on text 2. java GUI application randomx Programming 4 03-05-2004 02:01 PM


All times are GMT -5. The time now is 02:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration