Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Interface with applications on Linux



  • I am designing a program (call it A) to interface with another third-party application (call it B). How could program A determine window information about program B? In particular, is it possible to detect specific menus or buttons of program B? By "detect" I mean at least determine the screen position of such.

    Thanks for any ideas!



  • You can use IPC (Inter-Process Communication) to exchange information between your application and to determine what ever you need. "Qt has a module for D-BUS that may be useful":http://qt-project.org/doc/qt-4.8/QtDBus.html.



  • If A is a pure C++ program (It uses only SL functions) you can use pipe or UNIX domain socket for the IPC. If both A and B are Qt applications you can use Qt Socket (QtNetwork module) or Qt D-Bus.


Log in to reply