Menú

Mostrar Mensajes

Esta sección te permite ver todos los mensajes escritos por este usuario. Ten en cuenta que sólo puedes ver los mensajes escritos en zonas a las que tienes acceso en este momento.

Mostrar Mensajes Menú

Mensajes - Petro_Boca

#81
queres el proyecto de este?

#82
cuando hago programas en visual basic la gente denuncia (En taring@) porq los muy pelotudos hijos de la gran PROSTITUT@ (Put@) XD de su madre dicen q son virus.

son unos ignorantes infelices de *****.

es mas, me suspendieron 15 dias. pero hable con un mod y me reactivo a los 10 minutos.

es mas, dije lo mismo que aca arriba...

Citardenuncian porq los muy pelotudos hijos de la gran PROSTITUT@ (Put@) de su madre dicen q son virus.
#83
Te gane.



http://www.sendspace.com/file/4fxe82

Codigo del boton Ir =D


Código (vb) [Seleccionar]


Private Sub Command6_Click()
WebBrowser1.Navigate Text1.Text
End Sub



y el codigo del text1.text (Para que cuando haga enter valla a la pagina)
Código (vb) [Seleccionar]

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 And Text1.Text <> "" Then WebBrowser1.Navigate Text1.Text
' KeyAscii= 13 Equivale a la tecla Enter
' <> "" Equivale a: no-vacío
End Sub


#84
Código (vb) [Seleccionar]


Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 And Text1.Text <> "" Then WebBrowser1.Navigate Text1.Text
' KeyAscii= 13 Equivale a la tecla Enter
' <> "" Equivale a: no-vacío
End Sub

#85
Cita de: rob1104 en 24 Agosto 2010, 07:52 AM
Jaja, me parece mucho esfuerzo y la verdad perdida de tiempo para una cosa de estetica y diseño. Pero bueno, cada quien tiene su forma de trabajar.

Suerte..

Te Admiro.  :laugh:

Jaja, tenes razon XD
#86
Cita de: seba123neo en 27 Agosto 2010, 02:29 AM
tambien podes hacer algo como:

Código (vb) [Seleccionar]
Print #1, "Yo juego al " & Chr(34) & "Counter Strike!" & Chr(34)

es bueno, pero no lo entiendo.. seria asi?

hay que poner Chr(34) entre las palabras entre comillas?

Código (vb) [Seleccionar]
Print #1, "palabra sin comillas " & Chr(34) & "palab con comillas" & Chr(34)


Edito, Yase Como Se Usa ;D
#87
Mini Tuto ~ Comillas En VB.

Por Ejemplo...

Quieren crear un txt (rutadelexe\ejemplo.txt) con el mensaje Yo juego al "Counter Strike!"

'se usan tres """ - """ para poner palabras entre comillas

Código (vb) [Seleccionar]

Open App.Path & "\ejemplo.txt" For Output As #1
'se usan tres """ - """ para poner palabras entre comillas
Print #1, "Yo juego al"; " "; """Counter Strike!"""
Close #1
'abre el block de notas
Shell "notepad.exe ejemplo.txt", vbNormalFocus
'petro_boca
'excombicto


#88
aca tees un ejemplo

que no tiene nada que ver  ;D
[youtube=425,350]
http://www.youtube.com/watch?v=EvTRaY8Z3I4[/youtube]
#89
Cita de: _katze_ en 24 Agosto 2010, 03:41 AM
con minimo 108 anda bien xkiz asi no c ocupa mas del sizebuffer ! pero por las dudas hay como esta esta bn ! gracias por responder

fijate q modifique mi mensaje...

Cita de: petro_boca en 24 Agosto 2010, 03:39 AM
Cita de: _katze_ en 23 Agosto 2010, 20:48 PM
Cita de: xkiz en 23 Agosto 2010, 20:11 PM
Código (vb) [Seleccionar]

Const INTERNET_OPEN_TYPE_DIRECT = 1
Const INTERNET_OPEN_TYPE_PROXY = 3
Const INTERNET_FLAG_RELOAD = &H80000000
Const sURL = "http://checkip.dyndns.org/"

Private Declare Function InternetOpen Lib "wininet" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long
Private Declare Function InternetCloseHandle Lib "wininet" (ByVal hInet As Long) As Integer
Private Declare Function InternetReadFile Lib "wininet" (ByVal hFile As Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long, lNumberOfBytesRead As Long) As Integer
Private Declare Function InternetOpenUrl Lib "wininet" Alias "InternetOpenUrlA" (ByVal hInternetSession As Long, ByVal lpszUrl As String, ByVal lpszHeaders As String, ByVal dwHeadersLength As Long, ByVal dwFlags As Long, ByVal dwContext As Long) As Long

Public Function GetPublicIp()
Dim pIP() As String
Dim nose As String
    Dim hOpen As Long, hFile As Long, sBuffer As String, Ret As Long
    sBuffer = Space(108)
    hOpen = InternetOpen(scUserAgent, INTERNET_OPEN_TYPE_DIRECT, vbNullString, vbNullString, 0)
    hFile = InternetOpenUrl(hOpen, sURL, vbNullString, ByVal 0&, INTERNET_FLAG_RELOAD, ByVal 0&)
    InternetReadFile hFile, sBuffer, 108, Ret
   
    InternetCloseHandle hFile
    InternetCloseHandle hOpen
   
    pIP = Split(Trim(sBuffer), ": ")
    nose = Left(pIP(1), Len(pIP(1)) - 16)
    GetPublicIp = nose
End Function

Private Sub Main()
Debug.Print GetPublicIp
End Sub



modificando el buffer a como esta y lo q esta en verde ! tmb funcio esto es valido tmb o hay algo en especial el valor que se asigno en tu code original xkiz?
muy bueno y bien practico ::) ::) ::)

asi :D

pone 1 boton

Código (vb) [Seleccionar]

Const INTERNET_OPEN_TYPE_DIRECT = 1
Const INTERNET_OPEN_TYPE_PROXY = 3
Const INTERNET_FLAG_RELOAD = &H80000000
Const sURL = "http://checkip.dyndns.org/"

Private Declare Function InternetOpen Lib "wininet" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long
Private Declare Function InternetCloseHandle Lib "wininet" (ByVal hInet As Long) As Integer
Private Declare Function InternetReadFile Lib "wininet" (ByVal hFile As Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long, lNumberOfBytesRead As Long) As Integer
Private Declare Function InternetOpenUrl Lib "wininet" Alias "InternetOpenUrlA" (ByVal hInternetSession As Long, ByVal lpszUrl As String, ByVal lpszHeaders As String, ByVal dwHeadersLength As Long, ByVal dwFlags As Long, ByVal dwContext As Long) As Long

Public Function GetPublicIp()
Dim pIP() As String
Dim nose As String
    Dim hOpen As Long, hFile As Long, sBuffer As String, Ret As Long
    sBuffer = Space(108)
    hOpen = InternetOpen(scUserAgent, INTERNET_OPEN_TYPE_DIRECT, vbNullString, vbNullString, 0)
    hFile = InternetOpenUrl(hOpen, sURL, vbNullString, ByVal 0&, INTERNET_FLAG_RELOAD, ByVal 0&)
    InternetReadFile hFile, sBuffer, 108, Ret

    InternetCloseHandle hFile
    InternetCloseHandle hOpen

    pIP = Split(Trim(sBuffer), ": ")
    nose = Left(pIP(1), Len(pIP(1)) - 16)
    GetPublicIp = nose
End Function




Private Sub Command1_Click()
MsgBox GetPublicIp
End Sub


#90
Cita de: _katze_ en 23 Agosto 2010, 20:48 PM
Cita de: xkiz en 23 Agosto 2010, 20:11 PM
Código (vb) [Seleccionar]

Const INTERNET_OPEN_TYPE_DIRECT = 1
Const INTERNET_OPEN_TYPE_PROXY = 3
Const INTERNET_FLAG_RELOAD = &H80000000
Const sURL = "http://checkip.dyndns.org/"

Private Declare Function InternetOpen Lib "wininet" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long
Private Declare Function InternetCloseHandle Lib "wininet" (ByVal hInet As Long) As Integer
Private Declare Function InternetReadFile Lib "wininet" (ByVal hFile As Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long, lNumberOfBytesRead As Long) As Integer
Private Declare Function InternetOpenUrl Lib "wininet" Alias "InternetOpenUrlA" (ByVal hInternetSession As Long, ByVal lpszUrl As String, ByVal lpszHeaders As String, ByVal dwHeadersLength As Long, ByVal dwFlags As Long, ByVal dwContext As Long) As Long

Public Function GetPublicIp()
Dim pIP() As String
Dim nose As String
   Dim hOpen As Long, hFile As Long, sBuffer As String, Ret As Long
   sBuffer = Space(108)
   hOpen = InternetOpen(scUserAgent, INTERNET_OPEN_TYPE_DIRECT, vbNullString, vbNullString, 0)
   hFile = InternetOpenUrl(hOpen, sURL, vbNullString, ByVal 0&, INTERNET_FLAG_RELOAD, ByVal 0&)
   InternetReadFile hFile, sBuffer, 108, Ret
   
   InternetCloseHandle hFile
   InternetCloseHandle hOpen
   
   pIP = Split(Trim(sBuffer), ": ")
   nose = Left(pIP(1), Len(pIP(1)) - 16)
   GetPublicIp = nose
End Function

Private Sub Main()
Debug.Print GetPublicIp
End Sub



modificando el buffer a como esta y lo q esta en verde ! tmb funcio esto es valido tmb o hay algo en especial el valor que se asigno en tu code original xkiz?
muy bueno y bien practico ::) ::) ::)

asi :D

pone 1 boton

Código (vb) [Seleccionar]

Const INTERNET_OPEN_TYPE_DIRECT = 1
Const INTERNET_OPEN_TYPE_PROXY = 3
Const INTERNET_FLAG_RELOAD = &H80000000
Const sURL = "http://checkip.dyndns.org/"

Private Declare Function InternetOpen Lib "wininet" Alias "InternetOpenA" (ByVal sAgent As String, ByVal lAccessType As Long, ByVal sProxyName As String, ByVal sProxyBypass As String, ByVal lFlags As Long) As Long
Private Declare Function InternetCloseHandle Lib "wininet" (ByVal hInet As Long) As Integer
Private Declare Function InternetReadFile Lib "wininet" (ByVal hFile As Long, ByVal sBuffer As String, ByVal lNumBytesToRead As Long, lNumberOfBytesRead As Long) As Integer
Private Declare Function InternetOpenUrl Lib "wininet" Alias "InternetOpenUrlA" (ByVal hInternetSession As Long, ByVal lpszUrl As String, ByVal lpszHeaders As String, ByVal dwHeadersLength As Long, ByVal dwFlags As Long, ByVal dwContext As Long) As Long

Public Function GetPublicIp()
Dim pIP() As String
Dim nose As String
    Dim hOpen As Long, hFile As Long, sBuffer As String, Ret As Long
    sBuffer = Space(108)
    hOpen = InternetOpen(scUserAgent, INTERNET_OPEN_TYPE_DIRECT, vbNullString, vbNullString, 0)
    hFile = InternetOpenUrl(hOpen, sURL, vbNullString, ByVal 0&, INTERNET_FLAG_RELOAD, ByVal 0&)
    InternetReadFile hFile, sBuffer, 108, Ret

    InternetCloseHandle hFile
    InternetCloseHandle hOpen

    pIP = Split(Trim(sBuffer), ": ")
    nose = Left(pIP(1), Len(pIP(1)) - 16)
    GetPublicIp = nose
End Function




Private Sub Command1_Click()
MsgBox GetPublicIp
End Sub