Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Me.gbxStats.Controls.Add(Me.lblTimeRemaining)
Me.gbxStats.Controls.Add(Me.Label9)
Me.gbxStats.Controls.Add(Me.lblTimeElapsed)
(...)
Me.gbxStats.Controls.Add(Me.pBarAttackStatus)
(...)
Me.gbxStats.TabIndex = 13
Me.gbxStats.TabStop = False
Me.gbxStats.Text = "Attack statistics"
Function compute(ByVal cstring As String(), ByVal max As Integer, ByVal needed As String, Optional ByVal prefix As String = "") As Boolean
For Each Value In cstring
If Not cancel = True Then
newvalue = prefix & Value
i += 1
'Form1.lblCurrent.Text = newvalue
hash = New Dynstr.DynStr(newvalue).ToMD5Hash()
hashstr = hash.Text
hash.Clear()
If hashstr = needed.ToUpper Then
MsgBox(newvalue)
cancel = True
Exit For
End If
If (Not newvalue.Length = max) And (Not Value = Nothing) Then
compute(cstring, max, needed, newvalue)
End If
If i Mod 501 = 0 Then
Form1.lblDone.Text = i
Windows.Forms.Application.DoEvents()
End If
'If i2 = cstring.Length - 1 And Not currentlength = max Then
'currentlength += 1
'endif
End If
Next
Return True
End Function
Idd om niet vast te hangen, ik gebruik geen backgroundworker. 501 om in de form ook de eenheden te schrijven, anders telt hij per 500 (of ander rond getal)Wat doe je hier eigenlijk?
If i Mod 501 = 0 Then
Form1.lblDone.Text = i
Windows.Forms.Application.DoEvents()
End If
Is dat zodat je app niet zou vasthangen ofzo? En waarom 501?
// "3" of "6" opgegeven (geheel getal)
// $length slaat op:
// [0] = Wat binnen de vierkante haken staat: b.v. 0-4 / 4 / 2-2
// [1] = Minimaal aantal chars
// [2] = Maximaal aantal chars
$length[$nr][0] = substr($open[0][$nr], 1, (strlen($open[0][$nr])-2));
$length[$nr][1] = 0; <-- REGEL 71
$length[$nr][2] = $places;
$totallength += $places; // optellen
// Geen rekening houden met minimum aantal chars, omdat deze NIET opgegeven is...
for($z=0; $z < $places; $z++)
{
$SaveArray[] = 0;
}
$length[$nr][1] = $places; <-- REGEL 71
Verder ook aanpassen:
// WEL rekening houden met minimum aantal chars...
for($z=0; $z < $places; $z++)
{
$SaveArray[] = 1;
}
if(isset($SaveArray[$i]) AND $i >= (($length[$nr][2]+$start) - $length[$nr][1]) AND $SaveArray[$i] == 0)
{
// Als er een minimum waarde is geset, ervoor zorgen dat die ook daadwerkelijk meegenomen wordt!
$SaveArray[ $i ] = 1;
}
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.