Ook, gracias, lo corregí.
Y no, no está acabado nuestro proyecto, ni mucho menos...
DoEvents!
Y no, no está acabado nuestro proyecto, ni mucho menos...
DoEvents!
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ú
Option Explicit
Option Compare Binary
'====================================
' º Name : cConcatenator.cls
' º Version : 1.3
' º Author : Psyke1
' º Twitter : @SoyAbsurdo
' º Country : Spain
' º Date : 15/10/11
' º Visit :
' * http://foro.h-sec.org
' * http://infrangelux.sytes.net
'====================================
Private Declare Sub RtlMoveMemory Lib "ntdll.dll" (ByVal lpDestination As Long, ByVal lpSource As Long, ByVal Length As Long)
Private Declare Function SysAllocStringByteLen Lib "oleaut32.dll" (ByVal oleStr As Long, ByVal BLen As Long) As Long
Private sRet() As String
Private lCount As Long
Private lChunk As Long
Private lTotalLenB As Long
Public Static Sub Append(ByRef sText As String)
Dim lLenB As Long
lLenB = LenB(sText)
If lLenB Then
If lCount > lChunk Then
lChunk = lChunk + lChunk + 1&
ReDim Preserve sRet(lChunk) As String
End If
sRet(lCount) = sText
lCount = lCount + 1&
lTotalLenB = lTotalLenB + lLenB
End If
End Sub
Public Static Property Get LengthString() As Long
LengthString = LengthString \ 2&
End Property
Public Sub ResetAll()
lCount = 0&
lTotalLenB = 0&
End Sub
Public Static Property Get GetString() As String
Dim pDest As Long
Dim lLenBItem As Long
Dim Q As Long
If lCount Then
RtlMoveMemory VarPtr(GetString), VarPtr(SysAllocStringByteLen(0&, lTotalLenB)), 4&
pDest = StrPtr(GetString)
For Q = 0 To (lCount - 1&)
lLenBItem = LenB(sRet(Q))
RtlMoveMemory pDest, StrPtr(sRet(Q)), lLenBItem
pDest = pDest + lLenBItem
Next Q
End If
End Property
Private Sub Class_Initialize()
lChunk = &H270F&
ReDim sRet(lChunk) As String
End Sub
Option Explicit
Private Const sCombination As String = "brblcrclchdrdlflfrgrgljrjlkrkllrllmrmlprplrrrlsrsltrtlwrwlzrzl"
Private Const sVowels As String = "aeiou"
Private Const sConsonants As String = "bcdfgijklmnñpqrstvwxz"
Public Static Function PronunWord(ByVal lLen As Long) As String
Dim lCount As Long
Dim lNum As Long
Dim lLast As Long
Dim lVowelsCount As Long
If Not (lLen And &H80000000) Then
lCount = 0
lLast = 0
Do
CheckAgain:
lNum = RandomNumber(1, 3)
If lNum = 1 And lVowelsCount < 1 Then
lVowelsCount = -1
ElseIf lNum = lLast Then
GoTo CheckAgain
End If
Select Case lNum
Case 3
If Not (lCount > lLen - 3) Then
PronunWord = PronunWord & (MidB$(sCombination, (RandomNumber(1, 30) * 2) - 1, 4) & _
MidB$(sVowels, (RandomNumber(1, 5) * 2) - 1, 2))
lCount = lCount + 3
End If
Case 2
If lCount + 1 < lLen Then
PronunWord = PronunWord & (MidB$(sConsonants, (RandomNumber(1, 20) * 2) - 1, 2) & _
MidB$(sVowels, (RandomNumber(1, 5) * 2) - 1, 2))
lCount = lCount + 2
Else
PronunWord = PronunWord & MidB$(sConsonants, (RandomNumber(1, 20) * 2) - 1, 2)
lCount = lCount + 1
End If
Case Else
PronunWord = PronunWord & MidB$(sVowels, (RandomNumber(1, 5) * 2) - 1, 2)
If lLast = 1 Then
lVowelsCount = lVowelsCount + 1
Else
lVowelsCount = 0
End If
lCount = lCount + 1
End Select
lLast = lNum
Loop Until lCount = lLen
End If
End Function
Private Static Function RandomNumber(ByVal lMin As Long, ByVal lMax As Long) As Long
Randomize
RandomNumber = (lMin - lMax) * Rnd + lMax
End Function
Private Sub Form_Load()
Debug.Print PronunWord(100)
End Sub
purgiruocoouqolfioeugrearkeowaomiglamiolcifiopukliroonedluergeuñaikrofeamelfieefloioueicuooteeclooiu
CadenaLarga=Cadenalarga & (CadenaCorta1 & CadenaCorta2)
CadenaLarga=Cadenalarga & CadenaCorta1 & CadenaCorta2
Option Explicit
Public Function Get_Text(ByRef sText As String) As Collection
Dim oRegExp As Object
Dim oMatch As Object
Dim oMatches As Object
If LenB(sText) Then
Set oRegExp = CreateObject("VBScript.RegExp")
Set Get_Text = New Collection
With oRegExp
.Pattern = "<td><span>([\d\.]+)<\/span><\/td>"
.Global = True
.IgnoreCase = True
End With
Set oMatches = oRegExp.Execute(sText)
For Each oMatch In oMatches
Get_Text.Add oMatch.Submatches(0)
Next oMatch
End If
End Function
Private Sub Form_Load()
Dim vItem As Variant
Const sExample As String = "<td><span>123.234.123.231</span></td>" & vbNewLine & _
"<td><span>193.134.121.233</span></td>" & vbNewLine & _
"<td><span>83.234.123.1</span></td>"
For Each vItem In Get_Text(sExample)
Debug.Print vItem
Next vItem
End Sub
123.234.123.231
193.134.121.233
83.234.123.1
Cita de: $Edu$ en 2 Octubre 2011, 22:30 PMWhat?
Tendria que ser tuyo el otro programa tambien, y crear una conexion con sockets asi por ejemplo el data que le llega sera el comando a realizar.
http://foro.elhacker.net/programacion_visual_basic/ayudita_expresion_regular-t308911.0.html
http://es.wikipedia.org/wiki/Expresi%C3%B3n_regular
http://regexpal.com/
http://foro.elhacker.net/ejercicios/retos_de_expresiones_regulares-t306661.0.html