vladiii Posted July 20, 2007 Report Share Posted July 20, 2007 include 'C:\Documents and Settings\Vlad\Desktop\FASM W 167\INCLUDE\win32ax.inc'section '.code' code readable writeable executabletit db 'Numele melodiei ascultate este: ', 0mel db '.', 0hand db 'Winamp v1.x', 0err db 'A aparut o eroare in program! Scuze!', 0start:mov eax, 0push handpush 0Call [FindWindow]cmp eax, 0jz @nohandpush eaxpush melpush 512Call [GetWindowText]push 0push titpush melpush 0Call [MessageBox]@nohand:push 0push titpush errpush 0Call [MessageBox]push 0Call [ExitProcess].end startDa, nu afiseaza ce trebuie si mereu sare la labelul @nohand.As fi recunoscator daca m-ati ajuta! Thanks Quote Link to comment Share on other sites More sharing options...
vladiii Posted July 20, 2007 Author Report Share Posted July 20, 2007 Gata, rezolvai ! Thanks Slick. Acum am aflat ca daca folosesc push trebuie sa pun parametrii functiei API in ordine inversa fata de cum sunt ei declarati. Deci noul cod ar fi:include 'C:\Documents and Settings\Vlad\Desktop\FASM W 167\INCLUDE\win32ax.inc'section '.code' code readable writeable executabletit db 'Numele melodiei ascultate este: ', 0mel db '.................................', 0hand db 'Winamp v1.x', 0err db 'A aparut o eroare in program! Scuze!', 0mamaia dd 0start:mov eax, 0push 0push handCall [FindWindow]cmp eax, 0jz @nohandpush 512push melpush eaxCall [GetWindowText]push 0push titpush melpush 0Call [MessageBox]push 0Call [ExitProcess]@nohand:push 1push titpush errpush 0Call [MessageBox]push 0Call [ExitProcess].end startPostul asta trebuie mutat la programare Daca nu o faceti voi, o sa o fac eu Quote Link to comment Share on other sites More sharing options...