Home > Back-end >  Through the external program control, click on the button btn1 btn2 is equivalent to click on the bu
Through the external program control, click on the button btn1 btn2 is equivalent to click on the bu

Time:09-25

Delphi software written A has two buttons, button btn1 and button btn2, how to use external program control, click on the button btn1 btn2 is equivalent to click on the button, or click btn1 events trigger btn2,
Now know, btn1 and btn2 click event and all kinds of attribute information, the name of the
Don't know how to send messages, make btn1, click button and click the btn2

CodePudding user response:

Certainly no such requirement

CodePudding user response:

Lack of B by land, changed the software btn1 events in A point to it is not feasible,
However, you can through the software B, to the execution of software A bin1 and btn2.

CodePudding user response:

B by the software, change software btn1 events in A point to it is not feasible,
However, you can through the software B, to the execution of software A bin1 and btn2.

CodePudding user response:

Under discussion. Can you tell me how to use software is b perform a click?

CodePudding user response:

If it is in the same program
B.O nClick:=A.O nClick!
So when the code is written response at the same time,
Or in A.O nClick add
BClick (B), is the first processing is completed A and B,

If they are in class, don't understand

CodePudding user response:

Well, in the same program to realize there is no problem, the problem is to achieve through the external program

CodePudding user response:

External programs, get button on the handle, call it again,

CodePudding user response:

Just don't know how to get his handle (btn2 is hidden button)

CodePudding user response:

Well be dizzy

CodePudding user response:

Since you sure is written by Delphi program, that is very simple, the Module of a PE Explorer opens. Exe,. RSRC part find the form, this software can list the text description of the form, and Delphi IDE see, you find btn1 directly part of the definition, the OnClick=Btn1Click into Btn2Click, then save it,

CodePudding user response:

references 9 f doorsky123 response:
well be around dizzy

How do I find. RSRC part? Don't use PE Explorer

CodePudding user response:

references to the tenth floor DelphiGuy response:
since you sure is written by Delphi program, it is very simple, the Module of a PE Explorer opens. Exe,. RSRC part find the form, this software can list the text description of the form, and Delphi IDE see, you find btn1 directly part of the definition, the OnClick=Btn1Click into Btn2Click, then save,

How do I find. RSRC part? Don't use PE Explorer

CodePudding user response:

The Module of a PE Explorer opens. Exe, sections listed directly inside, don't have to look,

CodePudding user response:

Here you can download: http://download.csdn.net/detail/chenxh/130826

CodePudding user response:

references to the tenth floor DelphiGuy response:
since you sure is written by Delphi program, it is very simple, the Module of a PE Explorer opens. Exe,. RSRC part find the form, this software can list the text description of the form, and Delphi IDE see, you find btn1 directly part of the definition, the OnClick=Btn1Click into Btn2Click, then save,

Thank you very much! Has been solved,
  • Related