PDA

View Full Version : How to control an external application?



lixo1
3rd August 2009, 02:36
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.

navi1084
3rd August 2009, 05:19
I feel QProcess may help you

lixo1
3rd August 2009, 13:46
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.

wagmare
3rd August 2009, 13:48
take a look at QX11EmbedContainer();

Francesco
25th September 2009, 21:29
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