|
194
|
Programación / Programación Visual Basic / Re: Como indetificar la secuencia de objetos de un .exe en vb 6.0
|
en: 10 Octubre 2009, 04:16 am
|
Perdon, es el contenido String de los text del exe2 el que debes usar El bufer es no hace falta
Dim Hwndl As Long Dim LsTexto1 As Long Dim LsTexto2 As Long Dim LsTexto3 As Long Hwndl = FindWindow(vbNullString, "Alberto Olvera") LsTexto1 = FindWindowEx(Hwndl, 0, vbNullString, "Text1") ' contenido strng de Text1 en el exe2 LsTexto2 = FindWindowEx(Hwndl, 0, vbNullString, "Text2") ' contenido strng de Text2 en el exe2 LsTexto3 = FindWindowEx(Hwndl, 0, vbNullString, "Text3") ' contenido strng de Text3 en el exe2
Call SendMessage(LsTexto1, WM_SETTEXT, 0, ByVal Text1.Text) ' no hace falta bufer para enviar Call SendMessage(LsTexto2, WM_SETTEXT, 0, ByVal Text2.Text) ' no hace falta bufer para enviar Call SendMessage(LsTexto3, WM_SETTEXT, 0, ByVal Text3.Text) ' no hace falta bufer para enviar
PD: así me estan llegando los tres mensajes perfectamente
|
|
|
195
|
Programación / Programación Visual Basic / Re: Como indetificar la secuencia de objetos de un .exe en vb 6.0
|
en: 10 Octubre 2009, 03:42 am
|
Hwndl = FindWindow(vbNullString, "Alberto Olvera") LsTexto1 = FindWindowEx(Hwndl, 0, vbNullString, "Text1") ' Text1 es el nombre del control en el exe2 LsTexto2 = FindWindowEx(Hwndl, 0, vbNullString, "Text2") ' Text2 es el nombre del control en el exe2 LsTexto3 = FindWindowEx(Hwndl, 0, vbNullString, "Text3") ' Text3 es el nombre del control en el exe2
Call SendMessage(LsTexto1, WM_SETTEXT, 0, ByVal Text1.Text) ' no hace falta bufer para enviar Call SendMessage(LsTexto2, WM_SETTEXT, 0, ByVal Text2.Text) ' no hace falta bufer para enviar Call SendMessage(LsTexto3, WM_SETTEXT, 0, ByVal Text3.Text) ' no hace falta bufer para enviar
|
|
|
198
|
Programación / Programación Visual Basic / Re: como hacer webbrowser sin bordes?
|
en: 9 Octubre 2009, 05:14 am
|
Si metes el WebBrowser dentro de un picture y le recortas los extremos ? Private Sub Form_Load() Picture1.BorderStyle = 0 WebBrowser1.Left = -50 WebBrowser1.Top = -50 WebBrowser1.Width = Picture1.Width + 50 WebBrowser1.Height = Picture1.Height + 50 End Sub
El left y el top del WebBrowser1 son regidos por el Picture1 por estar contenido por el mismo S2
|
|
|
200
|
Programación / Programación Visual Basic / Re: Script para registro
|
en: 4 Octubre 2009, 18:09 pm
|
Para encontrar un valor en el registro sigue estos pasos : - Lista todas las claves del registro
- Lee todas las subclaves ( o no me acuerdo como se llaman las que tienen datos )
- Usa Instr para comprobar si existe la string dentro de la SubClave
canario77 : Ya te han indicado los pasos a seguir
|
|
|
|
|
|
|