问题是这样:我想把一个控件(A)的单击事件换成另一个控件(B)的单击事件,也就是说,把(A)的代码换成(B)的代码就行了。一下是我找到的2段代码,但是我不会换,请各位帮忙指点一下!2个控件不是在一个程序里,但是控件的名称属性都一样。
小弟初学乍练,啥也不懂,希望各位大哥能说的通俗一点!
控件(A)代码:
005081EC 55 push ebp
005081ED 8BEC mov ebp, esp
005081EF 33C9 xor ecx, ecx
005081F1 51 push ecx
005081F2 51 push ecx
005081F3 51 push ecx
005081F4 51 push ecx
005081F5 51 push ecx
005081F6 53 push ebx
005081F7 8BD8 mov ebx, eax
005081F9 33C0 xor eax, eax
005081FB 55 push ebp
* Possible String Reference to: '檐里豚[嬪]?
|
005081FC 683B835000 push $0050833B
***** TRY
|
00508201 64FF30 push dword ptr fs:[eax]
00508204 648920 mov fs:[eax], esp
00508207 8D55F4 lea edx, [ebp-$0C]
0050820A 8BC3 mov eax, ebx
|
0050820C E8F3FEFFFF call 00508104
00508211 8945FC mov [ebp-$04], eax
00508214 837DFC00 cmp dword ptr [ebp-$04], +$00
00508218 0F84F7000000 jz 00508315
0050821E 68E8946181 push $816194E8
|
00508223 E8CBCBFFFF call 00504DF3
00508228 F3 rep
00508229 A4 movsb
0050822A 66C1E60B shl si, $0B
0050822E 80FE8B cmp dh, $8B
00508231 8B7C2454 mov edi, [esp+$54]
00508235 8D642458 lea esp, [esp+$58]
00508239 0F882EE7FFFF js 0050696D
0050823F F8 clc
00508240 F8 clc
00508241 660FA4D60C shld si, dx, $0C
00508246 5E pop esi
00508247 F6C147 test cl, $47
0050824A 9D pop
0050824B 60 pusha
0050824C 8D642420 lea esp, [esp+$20]
00508250 E96D310100 jmp 0051B3C2
00508255 80C2BE add dl, $BE
00508258 D2D6 rcl dh, cl
0050825A 86F4 xchg ah, dh
0050825C 66FFC0 inc ax
0050825F 8B4500 mov eax, [ebp+$00]
00508262 D2F6 DB $D2, $F6 // dh, cl
00508264 D2FA sar dl, cl
00508266 00E2 add dl, ah
00508268 668B5504 mov dx, word ptr [ebp+$04]
0050826C 660FBAE10F shl cx, $0F
00508271 60 pusha
00508272 C604249D mov byte ptr [esp], $9D
00508276 FF742408 push dword ptr [esp+$08]
0050827A 83C506 add ebp, +$06
0050827D C70424DE18A1F4 mov dword ptr [esp], $F4A118DE
00508284 668910 mov [eax], dx
00508287 68399EA2B5 push $B5A29E39
0050828C 9C pushf
0050828D 66890424 mov [esp], ax
00508291 8D64242C lea esp, [esp+$2C]
00508295 E928310100 jmp 0051B3C2
0050829A FF742434 push dword ptr [esp+$34]
0050829E 8F4500 pop dword ptr [ebp+$00]
005082A1 FF742404 push dword ptr [esp+$04]
005082A5 56 push esi
005082A6 9C pushf
005082A7 55 push ebp
005082A8 8D642448 lea esp, [esp+$48]
005082AC E9462F0100 jmp 0051B1F7
005082B1 4E dec esi
005082B2 9C pushf
005082B3 887C2404 mov [esp+$04], bh
005082B7 6689642408 mov [esp+$08], sp
005082BC 9C pushf
005082BD 8D642418 lea esp, [esp+$18]
005082C1 E9312F0100 jmp 0051B1F7
005082C6 2F das
005082C7 6698 cbw
005082C9 C0D105 rcl cl, $05
005082CC 668B4500 mov ax, word ptr [ebp+$00]
|
005082D0 E9CBC5FFFF jmp 005048A0
005082D5 18C2 sbb dl, al
005082D7 66C1C805 ror ax, $05
005082DB 8B4500 mov eax, [ebp+$00]
005082DE 80D299 adc dl, $99
005082E1 8A5504 mov dl, byte ptr [ebp+$04]
005082E4 55 push ebp
005082E5 F8 clc
005082E6 38F5 cmp ch, dh
005082E8 83C506 add ebp, +$06
005082EB E990210100 jmp 0051A480
005082F0 60 pusha
005082F1 897C2440 mov [esp+$40], edi
005082F5 8874240C mov [esp+$0C], dh
005082F9 8D642440 lea esp, [esp+$40]
005082FD 0F8F84ECFFFF jnle 00506F87
00508303 60 pusha
00508304 895C241C mov [esp+$1C], ebx
00508308 60 pusha
00508309 E99A350100 jmp 0051B8A8
|
0050830E E8F2340100 call 0051B805
00508313 59 pop ecx
00508314 0A33 or dh, byte ptr [ebx]
00508316 C05A5959 rcr byte ptr [edx+$59], $59
0050831A 648910 mov fs:[eax], edx
****** FINALLY
|
* Possible String Reference to: '[嬪]?
|
0050831D 6842835000 push $00508342
00508322 8D45EC lea eax, [ebp-$14]
* Reference to: System.@WStrClr(void;void);
|
00508325 E802CFEFFF call 0040522C
0050832A 8D45F0 lea eax, [ebp-$10]
* Reference to: System.@LStrClr(void;void);
|
0050832D E8B2C7EFFF call 00404AE4
00508332 8D45F8 lea eax, [ebp-$08]
* Reference to: System.@LStrClr(void;void);
|
00508335 E8AAC7EFFF call 00404AE4
0050833A C3 ret
* Reference to: System.@HandleFinally;
|
0050833B E9DCC0EFFF jmp 0040441C
00508340 EBE0 jmp 00508322
****** END
|
00508342 5B pop ebx
00508343 8BE5 mov esp, ebp
00508345 5D pop ebp
00508346 C3 ret
===================================================
控件(B)代码:
00507DFC 55 push ebp
00507DFD 8BEC mov ebp, esp
00507DFF 83C4F0 add esp, -$10
00507E02 53 push ebx
00507E03 33C9 xor ecx, ecx
00507E05 894DF0 mov [ebp-$10], ecx
00507E08 894DF8 mov [ebp-$08], ecx
00507E0B 8BD8 mov ebx, eax
00507E0D 33C0 xor eax, eax
00507E0F 55 push ebp
00507E10 68097F5000 push $00507F09
***** TRY
|
00507E15 64FF30 push dword ptr fs:[eax]
00507E18 648920 mov fs:[eax], esp
00507E1B 8D55F4 lea edx, [ebp-$0C]
00507E1E 8BC3 mov eax, ebx
|
00507E20 E8EFFEFFFF call 00507D14
00507E25 8945FC mov [ebp-$04], eax
00507E28 837DFC00 cmp dword ptr [ebp-$04], +$00
00507E2C 0F84B9000000 jz 00507EEB
00507E32 68CE38D505 push $05D538CE
|
00507E37 E813CEFFFF call 00504C4F
00507E3C C0E805 shr al, $05
00507E3F D2C0 rol al, cl
00507E41 8A06 mov al, byte ptr [esi]
00507E43 660FA3E2 bt dx, sp
00507E47 54 push esp
00507E48 60 pusha
00507E49 60 pusha
00507E4A 28D8 sub al, bl
00507E4C 66892C24 mov [esp], bp
00507E50 66C704240D04 mov word ptr [esp], $040D
00507E56 F6D0 not al
00507E58 F5 cmc
00507E59 0FA3DF bt edi, ebx
00507E5C D0C8 ror al, 1
00507E5E 38C6 cmp dh, al
00507E60 F6D8 neg al
00507E62 6854C0704F push $4F70C054
00507E67 F9 stc
00507E68 F6D0 not al
00507E6A 9C pushf
00507E6B F8 clc
|
00507E6C E81E290100 call 0051A78F
00507E71 66268910 mov es:[eax], dx
00507E75 9C pushf
00507E76 60 pusha
00507E77 8D642428 lea esp, [esp+$28]
|
00507E7B E9DFE5FFFF jmp 0050645F
00507E80 9F lahf
00507E81 98 cwde
00507E82 8B4500 mov eax, [ebp+$00]
00507E85 60 pusha
00507E86 60 pusha
00507E87 E906370100 jmp 0051B592
00507E8C 0FBAE513 shl ebp, $13
00507E90 9C pushf
00507E91 83ED02 sub ebp, +$02
00507E94 660FBAE201 shl dx, $01
00507E99 84C2 test dl, al
00507E9B 66D3E0 shl ax, cl
00507E9E E91F310100 jmp 0051AFC2
00507EA3 6698 cbw
00507EA5 27 daa
00507EA6 668B4500 mov ax, word ptr [ebp+$00]
00507EAA FEC1 inc cl
00507EAC 8A4D02 mov cl, byte ptr [ebp+$02]
00507EAF F9 stc
|
00507EB0 E8CE320100 call 0051B183
00507EB5 C1E61F shl esi, $1F
00507EB8 66FFCE dec si
00507EBB 660FBAFE0F sar si, $0F
00507EC0 8B742450 mov esi, [esp+$50]
00507EC4 FC cld
00507EC5 F7C4B1B827A9 test esp, $A927B8B1
|
00507ECB E83A280100 call 0051A70A
00507ED0 E9C92B0100 jmp 0051AA9E
|
00507ED5 E9CCECFFFF jmp 00506BA6
00507EDA 9C pushf
00507EDB E9E42C0100 jmp 0051ABC4
00507EE0 F9 stc
00507EE1 66C1C00F rol ax, $0F
|
00507EE5 E8F92E0100 call 0051ADE3
00507EEA C633C0 mov byte ptr [ebx], $C0
00507EED 5A pop edx
00507EEE 59 pop ecx
00507EEF 59 pop ecx
00507EF0 648910 mov fs:[eax], edx
****** FINALLY
|
* Possible String Reference to: '[嬪]?
|
00507EF3 68107F5000 push $00507F10
00507EF8 8D45F0 lea eax, [ebp-$10]
* Reference to: System.@WStrClr(void;void);
|
00507EFB E82CD3EFFF call 0040522C
00507F00 8D45F8 lea eax, [ebp-$08]
* Reference to: System.@LStrClr(void;void);
|
00507F03 E8DCCBEFFF call 00404AE4
00507F08 C3 ret
* Reference to: System.@HandleFinally;
|
00507F09 E90EC5EFFF jmp 0040441C
00507F0E EBE8 jmp 00507EF8
****** END
|
00507F10 5B pop ebx
00507F11 8BE5 mov esp, ebp
00507F13 5D pop ebp
00507F14 C3 ret
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!