Results 1 to 5 of 5

Thread: How to control an external application?

  1. #1
    Join Date
    Sep 2008
    Posts
    60
    Thanks
    20
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to control an external application?

    Hi everybody,

    I would like to know if someone can explain me how to control another GUI application (not Qt) using Qt. A beautiful example is Hitman Pro 2, that controls many antivirus and launchs the correct configurations for many stuff. If I well understand it uses somenting like TAB and SPACE BAR to modify options in the external application, but I don't know if exists another more interesting solution.

    Thank you very much for any kind of help and information,
    Best Regards.

  2. #2
    Join Date
    Aug 2008
    Posts
    134
    Thanks
    10
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to control an external application?

    I feel QProcess may help you

  3. #3
    Join Date
    Sep 2008
    Posts
    60
    Thanks
    20
    Thanked 3 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to control an external application?

    Hi,

    Thank you for your reply. Unfortunately the external application doesn't accept command lines and it's only a GUI application (with buttons and checkboxes), so I think that QProcess doesn't help me to, for example, click a button in an external application.

    I don't know, but QCursor seems interesting to click, but the mouse position will be different in different PCs.

    Is there another profissional way to realise this task?

    Waiting for a new help .
    Best Regards.

  4. #4
    Join Date
    Sep 2008
    Location
    Bangalore
    Posts
    659
    Thanks
    116
    Thanked 42 Times in 41 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to control an external application?

    take a look at QX11EmbedContainer();
    "Behind every great fortune lies a crime" - Balzac

  5. #5

    Default Re: How to control an external application?

    Hi Lixo1,
    I'm having a quite similar problem...I need to move a cursor on an other PC.
    Did you solve your problem? Do you konw if there exist some implemented library in Qt for remote mouse control (the two PC are connected by a socket...Qt is the server).

    Thank you very much.

    Francesco

Similar Threads

  1. Replies: 3
    Last Post: 20th November 2014, 07:10
  2. Q3ScrollView resists to scroll down to the garbage bin
    By sivrisinek in forum Qt Programming
    Replies: 0
    Last Post: 5th February 2009, 17:50
  3. shared vs static
    By alisami in forum Installation and Deployment
    Replies: 3
    Last Post: 4th October 2008, 13:04
  4. Replies: 16
    Last Post: 23rd May 2008, 10:12
  5. Link Errors
    By magikalpnoi in forum Qt Programming
    Replies: 5
    Last Post: 25th September 2006, 22:04

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.