Programación General => Visual Basic 6.0 e inferiores => Mensaje iniciado por: RadicalEd en Lunes 20 de Septiembre de 2004, 19:11
Título: Api Sendmessage Y Findwindow
Publicado por: RadicalEd en Lunes 20 de Septiembre de 2004, 19:11
HOLA CHICOS DE SOLOCODIGO ESTOY HACIENDO UNA APLICACION CON LAS API's FindWindow Y SendMessage PARA CERRAR EL AUTOMARCADO DE INTERNET, Y LO QUE PASA ES QUE NO ME FUNCIONA SI QUIEREN POSTEO EL CODIGO AQUI LES VA 1 Command
Código: Text
Const WM_CLOSE = &H10
FindWindow y SendMessage
Private Sub CmdClose_Click()
Dim w As Long
w = FindWindow (vbNull, "Marcando emcatel...")
If w=0 Then
Exit Sub
End If
SendMessage w, WM_CLOSE, 0&, 0&
End Sub
[/color]
Título: Re: Api Sendmessage Y Findwindow
Publicado por: Cyclop en Martes 21 de Septiembre de 2004, 01:28
Puede ser que el titulo de la ventana no sea correcta
Este programa tiene la opcion para listar todas las ventanas activas en memoria, revisa si el nombre de la ventana que tu ingresaste se encuentre activa, puede que te hayas equivocado en el nombre.
Salu2
cyclop
Título: Re: Api Sendmessage Y Findwindow
Publicado por: RadicalEd en Martes 21 de Septiembre de 2004, 17:36
ASI ES EL NOMBRE DE LA VENTANA, HE INCLUSO USO UN TIMER CADA 5 SEGUNDOS PARA EVITARLO PERO NO ME FUNCIONA VOY A DESCARGAR LA APLICACION PARA VER PERO GRACIAS POR TU CONSEJO