Novità

Per Salvo50

Duplex

Advanced Member >PLATINUM PLUS<
Ciao Salvo,mi affido a te per modificare questo script sui radicali. Lanciato su Spaziometria dà errori. Lo script è vecchio e non ricordo l'autore. Puoi fare qualcosa?
Sub main()
Dim nc(4),nr(3),num(1),poste(10)
Dim ruote(4),posta(3),nu1(5),ruota(4),nu2(5)
posta(2)=1 posta(3)=1 poste(1)=1
fin=EstrazioneFin
ini=fin-150
For es=ini To Fin
AvanzamentoElab ini,fin,es
For r1=1 To 12
If r1=11 Then r1=12
For p1 = 1 To 4
For p2=p1+1 To 5
If p1+1=p2 Then
a = Estratto (es,r1,p1)
b = Estratto (es,r1,p2)
If Radicale(a) And Radicale(b) And Radicale(a)=Radicale(b) Then
For r2=1 To 12
If r2=11 Then r2=12
If r1<>r2 Then
For p3=1 To 5
c = Estratto (es,r2,p3)
If (Radicale(c) And Radicale(a)=Radicale(c) Or Radicale(b)=Radicale(c)) Then
If a<>c And b<>c And (p3=p1 Or p3=p2) Then
If p3=p1 Then d=Estratto (es,r2,p2) Else d=Estratto (es,r2,p1)
nr(1)=a:nr(2)=b:nr(3)=c
rd=Radicale (a)
nc(1)=rd:nc(2)=CInt (rd&"0"):nc(3)= CInt(rd&rd):nc(4)=CInt (rd&9)
For j=1 To 4
h=0
For i=1 To 3
If nc(j)<>nr(i) Then h=h+1
Next
If h=3 Then num(1)=nc(j) : Exit For
Next
ruote(1)=r1:ruote(2)=r2:ruota(1)=11:k=14:co=0
nu2(1)=num(1)'ambata
poste(1)=1 : poste(p1+5)=1 : poste(p2+5)=1
co=co+1
ImpostaGiocata co,nu2,ruote,poste,k
Erase Poste
nu1(1)=num(1)'ambata
nu1(2)=d
nu1(3)=Abs(d-num(1))
nu1(4)=Fuori90(d+num(1))
co=co+1
ImpostaGiocata co,nu1,ruote,posta,k
co=co+1
ImpostaGiocata co,nu1,ruota,post,k
casi=casi+1:Scrivi String(75,"=")
Scrivi DataEstrazione(es,1)&" [ "&SiglaRuota(r1)&" - "&StringaEstratti(es,r1)&" ] [ "&_
Format2(a)&"."&format2(b)&" ] in "&(p1)&"^--"&(p2)&"^ pos."
Scrivi DataEstrazione(es,1)&" [ "&SiglaRuota(r2)&" - "&StringaEstratti(es,r2)&" ] [ "&_
Format2(c)&"."&format2(d)&" ]in "&(p1)&"^--"&(p2)&"^ pos."
Scrivi "Nume. manc. ("& Format2 (num(1))&")",1
Scrivi String(60,"-")&" caso n° "&(casi)
Gioca es
End If
End If
Next
End If
Next
End If
End If
Next
Next
Next
Next
ScriviResoconto
End Sub
 
Ultima modifica:
Ciao a Tutti
Ciao Duplex

Andava in errore e l'ho corretto, sembra che non sia stato fatto per SpazioMetria
Comuque con l'errore che aveva, non avrebbe funzionato neanche con altri
programmi diversi da SpazioMetria


Codice:
Sub Main()
   Dim nc(4),nr(3),num(1),poste(10),post(2)
   Dim ruote(4),posta(3),nu1(5),ruota(4),nu2(5)
   posta(2) = 1:posta(3) = 1:poste(1) = 1 : post(2) = 1
   fin = EstrazioneFin
   ini = fin - 150
   For es = ini To Fin
      AvanzamentoElab ini,fin,es
      For r1 = 1 To 12
         If r1 = 11 Then r1 = 12
         For p1 = 1 To 4
            For p2 = p1 + 1 To 5
               If p1 + 1 = p2 Then
                  a = Estratto(es,r1,p1)
                  b = Estratto(es,r1,p2)
                  If Radicale(a) And Radicale(b) And Radicale(a) = Radicale(b) Then
                     For r2 = 1 To 12
                        If r2 = 11 Then r2 = 12
                        If r1 <> r2 Then
                           For p3 = 1 To 5
                              c = Estratto(es,r2,p3)
                              If(Radicale(c) And Radicale(a) = Radicale(c) Or Radicale(b) = Radicale(c)) Then
                                 If a <> c And b <> c And(p3 = p1 Or p3 = p2) Then
                                    If p3 = p1 Then
                                       d = Estratto(es,r2,p2)
                                    Else
                                       d = Estratto(es,r2,p1)
                                    End If
                                    nr(1) = a : nr(2) = b : nr(3) = c
                                    rd = Radicale(a)
                                    nc(1) = rd : nc(2) = CInt(rd & "0") : nc(3) = CInt(rd & rd) : nc(4) = CInt(rd & 9)
                                    For j = 1 To 4
                                       h = 0
                                       For i = 1 To 3
                                          If nc(j) <> nr(i) Then h = h + 1
                                       Next
                                       If h = 3 Then num(1) = nc(j) : Exit For
                                    Next
                                    ruote(1) = r1:ruote(2) = r2
                                    ruota(1) = 11
                                    k = 14
                                    co = 0
                                    nu2(1) = num(1)'ambata
                                    poste(1) = 1 : poste(p1 + 5) = 1 : poste(p2 + 5) = 1
                                    co = co + 1
                                    ImpostaGiocata co,nu2,ruote,poste,k
                                    Erase poste
                                    nu1(1) = num(1)'ambata
                                    nu1(2) = d
                                    nu1(3) = Abs(d - num(1))
                                    nu1(4) = Fuori90(d + num(1))
                                    co = co + 1
                                    ImpostaGiocata co,nu1,ruote,posta,k
                                    co = co + 1
                                    ImpostaGiocata co,nu1,ruota,post,k
                                    casi = casi + 1:Scrivi String(75,"=")
                                    Scrivi DataEstrazione(es,1) & " [ " & SiglaRuota(r1) & " - " & StringaEstratti(es,r1) & " ] [ " & _
                                    Format2(a) & "." & Format2(b) & " ] in " &(p1) & "^--" &(p2) & "^ pos."
                                    Scrivi DataEstrazione(es,1) & " [ " & SiglaRuota(r2) & " - " & StringaEstratti(es,r2) & " ] [ " & _
                                    Format2(c) & "." & Format2(d) & " ]in " &(p1) & "^--" &(p2) & "^ pos."
                                    Scrivi "Nume. manc. (" & Format2(num(1)) & ")",1
                                    Scrivi String(60,"-") & " caso n° " &(casi)
                                    Gioca es
                                 End If
                              End If
                           Next
                        End If
                     Next
                  End If
               End If
            Next
         Next
      Next
   Next
   ScriviResoconto
End Sub
 

Ultima estrazione Lotto

  • Estrazione del lotto
    giovedì 19 febbraio 2026
    Bari
    46
    45
    68
    27
    78
    Cagliari
    79
    09
    37
    13
    31
    Firenze
    66
    09
    22
    29
    50
    Genova
    61
    09
    38
    19
    20
    Milano
    84
    69
    53
    66
    29
    Napoli
    07
    58
    06
    87
    49
    Palermo
    10
    29
    84
    22
    35
    Roma
    28
    47
    11
    30
    24
    Torino
    52
    73
    18
    87
    56
    Venezia
    90
    86
    16
    36
    28
    Nazionale
    53
    21
    35
    03
    04
    Estrazione Simbolotto
    Cagliari
    19
    05
    27
    40
    37
Indietro
Alto