Novità

piccolo aiuto

gamberorosso

Senior Member
Volevo che lo script si fermasse appena trova una situazione favorevole e non quella impostata.... praticamente se nei 10 colpi trova al 2 colpo la situazione si deve fermare.... e se si potesse mettere anche quelle non isotope grazie
Codice:
Sub Main()
Dim nu(3)

ini = EstrazioneFin - 50
fin = EstrazioneFin
For es = ini To fin
For r = 1 To 9
For p = 1 To 4
For pp = p3 + 1 To 5
a = Estratto(es-10,r,p)  'estrazioni indietro
b = Estratto(es-10,r,pp)
di1 = Distanza(a,b)

If di1 = 5 Then
For rr = r + 1 To 10
c = Estratto(es,rr,p)
d = Estratto(es,rr,pp)
di2 = Distanza(c,d)
If di2 = di1 Then
Scrivi String(110,"$")
ColoreTesto 2
ColoreTesto 1
Scrivi DataEstrazione(es-10) & " " & SiglaRuota(r) & " " & StringaEstratti(es-10,r) & " [" & a & "-" & b & "] ",0,0
Scrivi " 1^ ambo " & nu(2),1
Scrivi DataEstrazione(es) & " " & SiglaRuota(rr) & " " & StringaEstratti(es,rr) & " [" & c & "-" & d & "] ",0,0
Scrivi " 2^ ambo " & nu(3),1
End If
Next
End If
Next
Next
Next
Next
end sub
 
Ultima modifica:
Ciao, vedi se ti va bene così, sei tu che decidi quante estrazioni a ritroso vuoi controllare.....

Codice:
Sub Main()
    Dim es
    Dim Ini
    Dim Fin
    Dim ee
    Dim exx
    Dim nu(3)
    ee = CInt(InputBox(" Quante estrazioni vuoi controllare ? ",,"50"))
    exx = CInt(InputBox("Quante estrazioni a ritroso vuoi controllare ?",,1))
    Ini = EstrazioneFin - ee
    Fin = EstrazioneFin
    co = 0
    For es = Ini To Fin
        Messaggio "elab. estr. [" &(es) & "] di " & DataEstrazione(es,1)
        Call AvanzamentoElab(Ini,Fin,es)
        For r = 1 To 9
            For p1 = 1 To 4
                For p2 = p + 1 To 5
                    a = Estratto(es - exx,r,p1)
                    b = Estratto(es - exx,r,p2)
                    di1 = Distanza(a,b)
                    If di1 = 5 Then
                        For rr = r + 1 To 10
                            c = Estratto(es,rr,p1)
                            d = Estratto(es,rr,p2)
                            di2 = Distanza(c,d)
                            If di2 = di1 Then
                                co = co + 1
                                ColoreTesto 0
                                Scrivi String(110,"°") & " Caso n°" & co,1
                                ColoreTesto 1
                                Scrivi DataEstrazione(es - exx) & " " & SiglaRuota(r) & " " & StringaEstratti(es - exx,r) & " [" & a & "-" & b & "] ",0,0
                                Scrivi " 1^ ambo " & nu(2),1
                                Scrivi DataEstrazione(es) & " " & SiglaRuota(rr) & " " & StringaEstratti(es,rr) & " [" & c & "-" & d & "] ",0,0
                                Scrivi " 2^ ambo " & nu(3),1
                            End If
                        Next
                    End If
                Next
            Next
        Next
    Next
    Scrivi
    Scrivi String(100,"*")
    ColoreTesto 2
    Scrivi" casi trovati : " & co,1
    ColoreTesto 0
    Scrivi String(100," * ")
End Sub
 
Ciao, mi sono accorto che c'erano alcune cosette da sistemare e ti ho aggiunto anche quelle non isotope come da te richiesto


Codice:
Sub Main()
    Dim es
    Dim Ini
    Dim Fin
    Dim ee
    Dim exx
    ee = CInt(InputBox(" Quante estrazioni vuoi controllare ? ",,"50"))
    exx = CInt(InputBox("Quante estrazioni a ritroso vuoi controllare ?",,1))
    Ini = EstrazioneFin - ee
    Fin = EstrazioneFin
    co = 0
    For es = Ini To Fin
        Messaggio "elab. estr. [" &(es) & "] di " & DataEstrazione(es,1)
        Call AvanzamentoElab(Ini,Fin,es)
        For r = 1 To 9
            For p1 = 1 To 4
                For p2 = p1 + 1 To 5
                    a = Estratto(es - exx,r,p1)
                    b = Estratto(es - exx,r,p2)
                    di1 = Distanza(a,b)
                    If di1 = 5 Then
                        For rr = r + 1 To 10
                            For p3 = 1 To 4
                                For p4 = p3 + 1 To 5
                                    c = Estratto(es,rr,p3)
                                    d = Estratto(es,rr,p4)
                                    di2 = Distanza(c,d)
                                    If di2 = di1 Then
                                        co = co + 1
                                        ColoreTesto 0
                                        Scrivi String(110,"°") & " Caso n°" & co,1
                                        ColoreTesto 1
                                        Scrivi DataEstrazione(es - exx) & " " & SiglaRuota(r) & " " & StringaEstratti(es - exx,r) & " [" & Format2(a) & "-" & Format2(b) & "] ",0,0
                                        Scrivi " 1^ ambo " & " in " & p1 & " e in " & p2 & " Pos.",1
                                        Scrivi DataEstrazione(es) & " " & SiglaRuota(rr) & " " & StringaEstratti(es,rr) & " [" & Format2(c) & "-" & Format2(d) & "] ",0,0
                                        Scrivi " 2^ ambo " & " in " & p3 & " e in " & p4 & " Pos.",1
                                    End If
                                Next
                            Next
                        Next
                    End If
                Next
            Next
        Next
    Next
    Scrivi
    Scrivi String(100,"*")
    ColoreTesto 2
    Scrivi" casi trovati : " & co,1
    ColoreTesto 0
    Scrivi String(100," * ")
End Sub
 

Ultima estrazione Lotto

  • Estrazione del lotto
    sabato 02 agosto 2025
    Bari
    65
    06
    49
    14
    01
    Cagliari
    16
    20
    15
    28
    45
    Firenze
    39
    10
    83
    09
    16
    Genova
    52
    74
    79
    63
    59
    Milano
    44
    88
    57
    34
    80
    Napoli
    20
    29
    78
    84
    79
    Palermo
    76
    68
    60
    64
    02
    Roma
    80
    84
    27
    78
    57
    Torino
    25
    50
    41
    49
    69
    Venezia
    85
    33
    60
    45
    84
    Nazionale
    05
    02
    64
    79
    37
    Estrazione Simbolotto
    Nazionale
    41
    07
    11
    17
    22

Ultimi Messaggi

Indietro
Alto