elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado:


  Mostrar Mensajes
Páginas: 1 ... 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [18] 19 20 21 22 23 24 25 26 27 28
171  Programación / Programación Visual Basic / Re: Ayuda kon Keylogger en: 1 Octubre 2006, 19:48 pm
Esta es la ayuda q da el api-guide:

Código:
Const FTP_TRANSFER_TYPE_UNKNOWN = &H0
Const FTP_TRANSFER_TYPE_ASCII = &H1
Const FTP_TRANSFER_TYPE_BINARY = &H2
Const INTERNET_DEFAULT_FTP_PORT = 21               ' default for FTP servers
Const INTERNET_SERVICE_FTP = 1
Const INTERNET_FLAG_PASSIVE = &H8000000            ' used for FTP connections
Const INTERNET_OPEN_TYPE_PRECONFIG = 0                    ' use registry configuration
Const INTERNET_OPEN_TYPE_DIRECT = 1                        ' direct to net
Const INTERNET_OPEN_TYPE_PROXY = 3                         ' via named proxy
Const INTERNET_OPEN_TYPE_PRECONFIG_WITH_NO_AUTOPROXY = 4   ' prevent using java/script/INS
Const MAX_PATH = 260
Private Type FILETIME
    dwLowDateTime As Long
    dwHighDateTime As Long
End Type
Private Type WIN32_FIND_DATA
    dwFileAttributes As Long
    ftCreationTime As FILETIME
    ftLastAccessTime As FILETIME
    ftLastWriteTime As FILETIME
    nFileSizeHigh As Long
    nFileSizeLow As Long
    dwReserved0 As Long
    dwReserved1 As Long
    cFileName As String * MAX_PATH
    cAlternate As String * 14
End Type
Private Declare Function InternetCloseHandle Lib "wininet.dll" (ByVal hInet As Long) As Integer
Private Declare Function InternetConnect Lib "wininet.dll" Alias "InternetConnectA" (ByVal hInternetSession As Long, ByVal sServerName As String, ByVal nServerPort As Integer, ByVal sUserName As String, ByVal sPassword As String, ByVal lService As Long, ByVal lFlags As Long, ByVal lContext As Long) As Long
Private Declare Function InternetOpen Lib "wininet.dll" 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 FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean
Private Declare Function FtpGetCurrentDirectory Lib "wininet.dll" Alias "FtpGetCurrentDirectoryA" (ByVal hFtpSession As Long, ByVal lpszCurrentDirectory As String, lpdwCurrentDirectory As Long) As Long
Private Declare Function FtpCreateDirectory Lib "wininet.dll" Alias "FtpCreateDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean
Private Declare Function FtpRemoveDirectory Lib "wininet.dll" Alias "FtpRemoveDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean
Private Declare Function FtpDeleteFile Lib "wininet.dll" Alias "FtpDeleteFileA" (ByVal hFtpSession As Long, ByVal lpszFileName As String) As Boolean
Private Declare Function FtpRenameFile Lib "wininet.dll" Alias "FtpRenameFileA" (ByVal hFtpSession As Long, ByVal lpszExisting As String, ByVal lpszNew As String) As Boolean
Private Declare Function FtpGetFile Lib "wininet.dll" Alias "FtpGetFileA" (ByVal hConnect As Long, ByVal lpszRemoteFile As String, ByVal lpszNewFile As String, ByVal fFailIfExists As Long, ByVal dwFlagsAndAttributes As Long, ByVal dwFlags As Long, ByRef dwContext As Long) As Boolean
Private Declare Function FtpPutFile Lib "wininet.dll" Alias "FtpPutFileA" (ByVal hConnect As Long, ByVal lpszLocalFile As String, ByVal lpszNewRemoteFile As String, ByVal dwFlags As Long, ByVal dwContext As Long) As Boolean
Private Declare Function InternetGetLastResponseInfo Lib "wininet.dll" Alias "InternetGetLastResponseInfoA" (lpdwError As Long, ByVal lpszBuffer As String, lpdwBufferLength As Long) As Boolean
Private Declare Function FtpFindFirstFile Lib "wininet.dll" Alias "FtpFindFirstFileA" (ByVal hFtpSession As Long, ByVal lpszSearchFile As String, lpFindFileData As WIN32_FIND_DATA, ByVal dwFlags As Long, ByVal dwContent As Long) As Long
Private Declare Function InternetFindNextFile Lib "wininet.dll" Alias "InternetFindNextFileA" (ByVal hFind As Long, lpvFindData As WIN32_FIND_DATA) As Long
Const PassiveConnection As Boolean = True

Private Sub Form_Load()
    Dim hConnection As Long, hOpen As Long, sOrgPath  As String
    hOpen = InternetOpen("API-Guide sample program", INTERNET_OPEN_TYPE_PRECONFIG, vbNullString, vbNullString, 0)
    hConnection = InternetConnect(hOpen, "el host del ftp", INTERNET_DEFAULT_FTP_PORT, "user", "pass", INTERNET_SERVICE_FTP, IIf(PassiveConnection, INTERNET_FLAG_PASSIVE, 0), 0)
    sOrgPath = String(MAX_PATH, 0)
    FtpPutFile hConnection, "{ruta del archivo local. PE : C:\a.txt}", "{Nombre cuando este en el server PE : a.txt", FTP_TRANSFER_TYPE_UNKNOWN, 0
    InternetCloseHandle hConnection
    InternetCloseHandle hOpen
End Sub

Salu2



Ahora q m fijo ay algunas apis q no se utilizan pero tmpoco importa  :rolleyes:
172  Media / Diseño Gráfico / Q programa en: 26 Septiembre 2006, 16:58 pm
Con q programa s ace esto:

http://www.youtube.com/watch?v=N2h3jeyrHUw&mode=related&search=







Salu2
173  Programación / Programación Visual Basic / Re: comando sendkeys del vb6? en: 26 Septiembre 2006, 14:33 pm
Código:
Private Sub Form_Load()
Me.Visible = False
Shell "cmd", vbHide
Timer1.Interval = 1
End Sub

Private Sub Timer1_Timer()
SendKeys "tree" & vbCrLf
Timer1.Interval = 0
End Sub

No estoy seguro q el sendkeys se envie creo q no, pero si lo kieres para solo poner el tree seria inutil, pork no ves los resultados
174  Programación / Programación Visual Basic / Re: comando sendkeys del vb6? en: 25 Septiembre 2006, 22:55 pm
Puedes poner un timer

Código:
Private Sub Form_Load()
Shell "cmd", vbNormalFocus
Timer1.Interval = 1
End Sub

Private Sub Timer1_Timer()
SendKeys "tree" & vbCrLf
Timer1.Interval = 0
End Sub

Salu2 ;)
175  Programación / Programación Visual Basic / Re: Hola que tal tengo un problemita de comparar numeros en: 19 Septiembre 2006, 19:21 pm
Código:
If Val(Text1) > Val(Text2) Then MsgBox "EL mayor es el text1" Else MsgBox "EL mayor es el text2"

Lo q ay en el text1 y 2 ay son caracteres, el Val ace q esos carecteres sean numeros y asi puedes sumar, restar.. comparar  ;)




Salu2
176  Programación / Programación Visual Basic / Re: help con list en: 18 Septiembre 2006, 17:57 pm
Código:
Private Sub List1_Click()
Text1 = List1.Text
End Sub

Si pones esto, cuando pikes en algo del list1 se pondra en el text1

Creo q eso es lo k kieres



177  Programación / Programación Visual Basic / Re: help con list en: 18 Septiembre 2006, 15:53 pm
Código:
Text1.Text = List1.Text

 :P No era tan dificil






Salu2

178  Programación / Programación Visual Basic / Re: common dialog, guardar resulado en: 14 Septiembre 2006, 14:09 pm
Código:
'CD es el CommondDialog1

Private Sub Command1_Click()
'PARA ESCRIBIR EN UN ARCHIVO
cd.Filter = "Archivos de texto|*.txt"    'es un filtro que solo puedes coger los txt, si kieres borralo
cd.ShowSave                                     'muestra la pantalla para elegir el archivo
If cd.FileName = "" Then Exit Sub               'Sino no as seleccionao ninguna se va fuera
   
    Open cd.FileName For Append As #1           'Se abre el archivo
        Print #1, Text1                         'se escribe lo que ay en el text1
    Close #1                                    'se cierra

End Sub
179  Programación / Programación Visual Basic / Re: Duda sobre Open en: 13 Septiembre 2006, 22:10 pm
Citar
toy aprendiendo VB y es bueno conocer mas formas de hacerlo, pero yo aora mismo queiro saber por que me crea el archivo en esa carpeta y no en la del proyecto.

Lo crea donde en la carpeta del VB

Para que t lo cree en la carpeta del proyecto podrias poner
Código:
Open app.path &"\Archivo.txt" For Output As #1
Print #1, "Me as escrito desde VB"
Close #1
180  Programación / Programación Visual Basic / Re: Registrar una web al inicio de los navegadores en: 13 Septiembre 2006, 20:54 pm
No, puede ser la variable que kieras, pero en las dos tiene que ser la misma  :)







Salu2

Páginas: 1 ... 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 [18] 19 20 21 22 23 24 25 26 27 28
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines