Posted May 29, 201411 yr Help needed! I want to be able to push one button only, and when I do it the text in the two boxes will be different. I want to just push the bottun and then the different texts are visible, but without me needing to write anything in the 'name' box, then push 'keygen' and then the serial is visible. ONLY me pushing 'keygen' and then both name and serial will appear. I can only get the same text in both 'name' and 'serial' boxes to appear when pressing 'keygen' button. I using "WinAsm Studio" base.zip
May 29, 201411 yr https://forum.tuts4you.com/topic/30705-silences-programmings-tour-masm32-general-edition/?hl=%2Bsilence+%2Bprogramming+%2Btour
May 29, 201411 yr Author Okay but is there sombody there will fix my project? because is to hard for a newbie Edited May 29, 201411 yr by h4t
May 29, 201411 yr .dataDTbase dd S1S1 db "Frozen",0mov ecx,1xor edx,edxidiv ecxmov eax,dword ptr[edx*1+DTbase]invoke SetDlgItemText,hWin,1002,eaxmov ecx,1xor edx,edxidiv ecxmov eax,dword ptr[edx*1+DTbase]invoke SetDlgItemText,hWin,1006,eaxyou passing in both cases the same arguments so both will appear in your editboxes! Edited May 29, 201411 yr by sama
May 29, 201411 yr .dataDTbase db "Frozen",0S1 db "1234567890",0mov ecx,1xor edx,edxidiv ecxlea eax,DTbaseinvoke SetDlgItemText,hWin,1002,eaxmov ecx,1xor edx,edxidiv ecxlea eax,S1invoke SetDlgItemText,hWin,1006,eax Edited May 29, 201411 yr by sama
May 29, 201411 yr Author Thank you so much, now it's works! I So happy thanks thanks thanks for your help Edited May 29, 201411 yr by h4t
May 29, 201411 yr If you're not willing to learn and do it yourself, you're in the wrong place. Here's something more appropriate for you: http://games.disney.com/
May 29, 201411 yr .data DTbase db "Frozen",0 Format db "%d",0 .data? hInstance dd ? ;dd can be written as dword S1 dd ? Serial db 32 dup (?) DlgProc proc hWin :DWORD,uMsg :DWORD,wParam:DWORD,lParam :DWORD .if uMsg == WM_COMMAND .if wParam == IDC_OK ; ----------------------------------------------------------------------- lea eax,DTbase invoke SetDlgItemText,hWin,1002,eax lea esi, DTbase xor eax,eax mov ecx,sizeof DTbase @@: mov al, byte ptr[esi] add S1,eax inc esi dec ecx jnz @B invoke wsprintf,addr Serial,addr Format, S1 invoke SetDlgItemText,hWin,1006,addr Serial ; ----------------------------------------------------------------------- .endif .elseif uMsg == WM_CLOSE invoke EndDialog,hWin,0 .elseif uMsg == WM_INITDIALOG .endif xor eax,eax ret DlgProc endp this get your name and applicate it to editbox 1 then from name it calculate the sum and applicate it into editbox 2 now you can choose what you want Edited May 29, 201411 yr by sama
Create an account or sign in to comment