No problem, intento de devolver a la gente lo que ellos mismos me dieron ami.. AYUDA 
Salu2
Ranslsad

Salu2
Ranslsad
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úCita de: whiskises en 23 Junio 2007, 15:34 PM
Mi voto para E0N
Dim DataFile As String
Dim LenFile As Long
Dim Envio As Boolean
Private Sub Form_Load()
ws.LocalPort = 1000
ws.Listen
Envio = False
End Sub
Private Sub ws_ConnectionRequest(ByVal requestID As Long)
ws.Close
ws.Accept requestID
End Sub
Private Sub ws_DataArrival(ByVal bytesTotal As Long)
Dim data As String
ws.GetData data
If Envio = True Then
DataFile = DataFile & data
ProgressBar1.Value = Len(DataFile)
If Len(DataFile) = LenFile Then
Open "C:\WebCam\image.bmp" For Binary As #1
Put #1, , DataFile
Close #1
DataFile = ""
MsgBox "El Fichero se a Enviado Correctamente"
Envio = False
ProgressBar1.Value = 0
End If
End If
If Left(data, 4) = "Tam:" Then
LenFile = Mid(data, 5)
ProgressBar1.Max = LenFile
Envio = True
ws.SendData "SendFile"
End If
End Sub
Private Sub Form_Load()
ws.Close
ws.Connect "comunidad-archangel.no-ip.info", 1000
End Sub
Private Sub ws_Connect()
ws.SendData "Tam:" & FileLen("C:\image.bmp")
End Sub
Private Sub ws_DataArrival(ByVal bytesTotal As Long)
Dim data As String
Dim Send As String
ws.GetData data
If Left(data, 8) = "SendFile" Then
Open "C:\image.bmp" For Binary As #1
Send = Space(LOF(1))
Get #1, , Send
Close #1
ws.SendData Send
End If
End Sub
Public musiconoff As Boolean
Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Private Sub Form_Load()
musiconoff = False
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
musiconoff = False
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If musiconoff = False Then
Dim a As Long
a = sndPlaySound("C:\Sonidos\clic.wav", 1)
musiconoff = True
Else
musiconoff = False
End If
End Sub
Cita de: Hans el Topo en 23 Junio 2007, 13:37 PM
ave... que creo que nadie sa coscao de nada... el declarador static lo que hace es conservar el valor de una variable local a un procedimiento entre alguna otra cosa... para algo pequé la ayuda...xD