Click here to Skip to main content
15,884,002 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi first i have no source code of the 3rd-party application.let me describe my problem in detail for you,for example there is a button on the 3rd-party application,it can implement a function with the button is pressed down.then i want to write a new application with a button too,i just press the button on the new application,and the 3rd-party application could implement the function. could you give me some tips and the system is linux?
Posted
Updated 21-Aug-13 15:32pm
v2
Comments
Sergey Alexandrovich Kryukov 21-Aug-13 21:34pm    
Essentially, this is a re-post of this: http://www.codeproject.com/Questions/641017/how-to-post-message-to-a-third-party-appliaction-i.

The answer is: don't!

—SA

1 solution

You should not re-post and ignore the answer you already got. Please see my comment to the question and that answer: how to post message to a third-party appliaction in linux?[^].

Let me explain more: processes in Linux are well isolated, and different applications are different processes. If an application is designed for collaboration with others, you should have described it. Learn if from documentation. One technique usual in Linux is piping. It is used for simple application getting text data from standard input and writing to standard output. But such application should not do anything else.

You, however, told us something about "button", that is, this is a UI application. Don't do dirty business, do something legitimate. I, for example, would first think about replacing of this unknown application with something you would write by yourself.

That's all. If you have as little information as you gave us, it means you know virtually nothing about this application, so we also know virtually nothing. This is enough to say: don't do it.

—SA
 
Share this answer
 
Comments
kkklko 21-Aug-13 22:14pm    
May I explain? My task is beautifying an application and that is an business application. That is not illegitimate,and we got the permission of the company,we just develop a more beautiful UI.But in case of business application,we can not get the source code. My co-worker do it in windows,and I do it in linux.And my co-corker have implemented it by sending message to the wnd.of course,he took much time to find out the message code by test.
in any case,thank you very much.


-kkklko
Sergey Alexandrovich Kryukov 22-Aug-13 0:11am    
I mean "legitimate" not in legal sense, but in the sense of abuse the technology. But forget "legitimate". I explain why this is a bad business. Anyway, you have no information on the application which could possibly help. Sending message to UI to click a button is a great absolute abuse, congratulate your colleague with success. Unless this is some special system utility. Making application out of dirty tricks is dirty business and means betraying your users.

I think we are talking different language. You are aimed to "solve the problem", whatever it takes. There are cases when not doing the job is the real virtue.

—SA
kkklko 21-Aug-13 22:17pm    
And sorry for my poor English,I can't describe my problem clearly.
many thanks to you. :)


-kkklko
Sergey Alexandrovich Kryukov 22-Aug-13 0:12am    
I think your English is clear enough...
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900