Novità

Modifica su script grazie per Salvo50 o altro esperto

sorujoe

Advanced Member
Ho trovato il lottofacile 1 di manara vi chiedo se è possibile di fare in modo che prenda tutti i casi anche quelli non isotopi ….al momento prende solo quelli isotopi.
questo script gira su lottodesk e mi va bene eventualmente mi andrebbe bene anche su spaziometria del grande Luigi.

Sub main()

Dim nu1(3),nu2(2),nu3(3),ruote(2),ruota(1)

Dim posta(1),poste(2),post(3)

posta(1)=5:poste(2)=5post(2)=4post(3)=1

ce=InputBox("da quale estrazione vuoi controllare? ","estrazione",8200)

k=InputBox ("per quanti colpi?","colpi di gioco",14)

ini=ce

fin=EstrazioneFin

Scrivi "lotto facile 1 di o_manara (script by maxma62)",1

Scrivi String(76,"="),1

Scrivi "Resoconto da "&DataEstrazione(ini,1)&" a "&_

DataEstrazione(fin,1)&" ("&(fin-ce)&" estr.)"

For es=ini ToEstrazioneFin

Messaggio "elab. estr. ["&(es)&"] di "&DataEstrazione (es,1)

For r1=1 To 9

For p1=1 To 4

For p2=p1+1 To 5

a=Estratto (es,r1,p1)

b=Estratto (es,r1,p2)

a1=Fuori90(a+b)

For r2=r1+1 To 10

IfDistanza(r2,r1)=5 Or r2=r1+1 Or r2=r1-11 Then'lasciare per solo diametr. consec e gemm

For p3=1 To 4

For p4=p3+1 To 5

c=Estratto(es,r2,p3)

d=Estratto(es,r2,p4)

If p3=p1 And p4=p2 Then'ambi isotopi

a2=Fuori90(c+d)

If (a1)=(a2) Then

n1=Abs(a-d) 'diff matem diag

n2=Abs(b-c) 'diff matem diag

n3=Abs(a-c) 'diff matem vert

n4=Abs(b-d) 'diff matem vert

If n1=n2 And n3=n4 Then'se le diff sono uguali

n5=Abs(n2-n4)

n6=Fuori90(a2+n5) 'ambata

n7=90-a2 '1^ abb

If n7=0 Then n7=90

n8=Vert(n7) '2^ abb

casi=casi+1:Scrivi String(58,"=")&" script by maxma62",1

ScriviDataEstrazione(es,1)&" [ "&siglaRuota(r1)&" - "&StringaEstratti(es,r1)&_

" ] ambo somma [ " & Format2(a) &"."& Format2 (b)&" ] "&(p1)&"^/"&(p2)&"^ pos."

ScriviDataEstrazione(es,1)&" [ "&siglaRuota(r2)&" - "&StringaEstratti(es,r2)&_

" ] ambo somma [ "& Format2 (c) &"."& Format2 (d)&" ] "&(p3)&"^/"&(p4)&"^ pos."

ColoreTesto 0:Scrivi String(64,"-")&" caso n° "&casi

ruote(1)=r1:ruote(2)=r2:ruota(1)=11:co=0

nu1(1)=n6

co=co+1

ImpostaGiocata co,nu1,ruote,posta,k,1

nu2(1)=n6:nu2(2)=n7

co=co+1

ImpostaGiocata co,nu2,ruote,poste,k

nu2(2)=n8

co=co+1

ImpostaGiocata co,nu2,ruote,poste,k

nu3(1)=n6:nu3(2)=n7:nu3(3)=n8

co=co+1

ImpostaGiocata co,nu3,ruote,post,k

co=co+1

ImpostaGiocata co,nu3,ruota,post,k

Gioca es

EndIf

EndIf

EndIf'ambi isotopi

Next:Next

EndIf'lasciare per solo diametr. e consec

Next:Next:Next:Next:Next

Scrivi String(58,"=")&" script by maxma62",1

ScriviResoconto

ColoreTesto 1:scrivi "lotto facile 1 di o_manara (script by maxma62)",1

EndSub
 
Ultima modifica:

sorujoe

Advanced Member
Sub main()

Dim nu1(3),nu2(2),nu3(3),ruote(2),ruota(1)

Dim posta(1),poste(2),post(3)

posta(1)=5:poste(2)=5:post(2)=4:post(3)=1

ce=InputBox("da quale estrazione vuoi controllare? ","estrazione",8200)

k=InputBox ("per quanti colpi?","colpi di gioco",14)

ini=ce

fin=EstrazioneFin

Scrivi "lotto facile 1 di o_manara (script by maxma62)",1

Scrivi String(76,"="),1

Scrivi "Resoconto da "&DataEstrazione(ini,1)&" a "&_

DataEstrazione(fin,1)&" ("&(fin-ce)&" estr.)"

For es=ini To EstrazioneFin

Messaggio "elab. estr. ["&(es)&"] di "&DataEstrazione (es,1)

For r1=1 To 9

For p1=1 To 4

For p2=p1+1 To 5

a=Estratto (es,r1,p1)

b=Estratto (es,r1,p2)

a1=Fuori90(a+b)

For r2=r1+1 To 10

If Distanza(r2,r1)=5 Or r2=r1+1 Or r2=r1-11 Then 'lasciare per solo diametr. consec e gemm

For p3=1 To 4

For p4=p3+1 To 5

c=Estratto(es,r2,p3)

d=Estratto(es,r2,p4)

If p3=p1 And p4=p2 Then 'ambi isotopi

a2=Fuori90(c+d)

If (a1)=(a2) Then

n1=Abs(a-d) 'diff matem diag

n2=Abs(b-c) 'diff matem diag

n3=Abs(a-c) 'diff matem vert

n4=Abs(b-d) 'diff matem vert

If n1=n2 And n3=n4 Then 'se le diff sono uguali

n5=Abs(n2-n4)

n6=Fuori90(a2+n5) 'ambata

n7=90-a2 '1^ abb

If n7=0 Then n7=90

n8=Vert(n7) '2^ abb

casi=casi+1:Scrivi String(58,"=")&" script by maxma62",1

Scrivi DataEstrazione(es,1)&" [ "&siglaRuota(r1)&" - "&StringaEstratti(es,r1)&_

" ] ambo somma [ " & Format2(a) &"."& Format2 (b)&" ] "&(p1)&"^/"&(p2)&"^ pos."

Scrivi DataEstrazione(es,1)&" [ "&siglaRuota(r2)&" - "&StringaEstratti(es,r2)&_

" ] ambo somma [ "& Format2 (c) &"."& Format2 (d)&" ] "&(p3)&"^/"&(p4)&"^ pos."

ColoreTesto 0:Scrivi String(64,"-")&" caso n° "&casi

ruote(1)=r1:ruote(2)=r2:ruota(1)=11:co=0

nu1(1)=n6

co=co+1

ImpostaGiocata co,nu1,ruote,posta,k,1

nu2(1)=n6:nu2(2)=n7

co=co+1

ImpostaGiocata co,nu2,ruote,poste,k

nu2(2)=n8

co=co+1

ImpostaGiocata co,nu2,ruote,poste,k

nu3(1)=n6:nu3(2)=n7:nu3(3)=n8

co=co+1

ImpostaGiocata co,nu3,ruote,post,k

co=co+1

ImpostaGiocata co,nu3,ruota,post,k

Gioca es

End If

End If

End If 'ambi isotopi

Next:Next

End If 'lasciare per solo diametr. e consec

Next:Next:Next:Next:Next

Scrivi String(58,"=")&" script by maxma62",1

ScriviResoconto

ColoreTesto 1:scrivi "lotto facile 1 di o_manara (script by maxma62)",1

End Sub
 

salvo50

Advanced Member >PLATINUM PLUS<
Ciao a Tutti

Vedi se ho capito la tua richiesta

Codice:
Sub Main()
   Dim nu1(3),nu2(2),nu3(3),ruote(2),ruota(1)
   Dim posta(1),poste(2),post(3)
   posta(1) = 5 : poste(2) = 5 : post(2) = 4 : post(3) = 1
   ce = InputBox("da quale estrazione vuoi controllare? ","estrazione",9500)
   k = InputBox("per quanti colpi?","colpi di gioco",14)
   ini = ce
   fin = EstrazioneFin
   Scrivi "lotto facile 1 di o_manara (script by maxma62)",1
   Scrivi String(76,"="),1
   Scrivi "Resoconto da " & DataEstrazione(ini,1) & " a " & _
   DataEstrazione(fin,1) & " (" &(fin - ce) & " estr.)"
   For es = ini To EstrazioneFin
      Messaggio "elab. estr. [" &(es) & "] di " & DataEstrazione(es,1)
      For r1 = 1 To 9
         For p1 = 1 To 4
            For p2 = p1 + 1 To 5
               a = Estratto(es,r1,p1)
               b = Estratto(es,r1,p2)
               a1 = Fuori90(a + b)
               For r2 = r1 + 1 To 10
                  If Distanza(r2,r1) = 5 Or r2 = r1 + 1 Or r2 = r1 - 11 Then'lasciare per solo diametr. consec e gemm
                     For p3 = 1 To 4
                        For p4 = p3 + 1 To 5
                           c = Estratto(es,r2,p3)
                           d = Estratto(es,r2,p4)
                           'If p3 = p1 And p4 = p2 Then'ambi isotopi
                           a2 = Fuori90(c + d)
                           If(a1) =(a2) Then
                              n1 = Abs(a - d) 'diff matem diag
                              n2 = Abs(b - c) 'diff matem diag
                              n3 = Abs(a - c) 'diff matem vert
                              n4 = Abs(b - d) 'diff matem vert
                              If n1 = n2 And n3 = n4 Then'se le diff sono uguali
                                 n5 = Abs(n2 - n4)
                                 n6 = Fuori90(a2 + n5) 'ambata
                                 n7 = 90 - a2 '1^ abb
                                 If n7 = 0 Then n7 = 90
                                 n8 = Vert(n7) '2^ abb
                                 casi = casi + 1:Scrivi String(58,"=") & " script by maxma62",1
                                 Scrivi DataEstrazione(es,1) & " [ " & SiglaRuota(r1) & " - " & StringaEstratti(es,r1) & _
                                 " ] ambo somma [ " & Format2(a) & "." & Format2(b) & " ] " &(p1) & "^/" &(p2) & "^ pos."
                                 Scrivi DataEstrazione(es,1) & " [ " & SiglaRuota(r2) & " - " & StringaEstratti(es,r2) & _
                                 " ] ambo somma [ " & Format2(c) & "." & Format2(d) & " ] " &(p3) & "^/" &(p4) & "^ pos."
                                 ColoreTesto 0:Scrivi String(64,"-") & " caso n° " & casi
                                 ruote(1) = r1:ruote(2) = r2:ruota(1) = 11:co = 0
                                 nu1(1) = n6
                                 co = co + 1
                                 ImpostaGiocata co,nu1,ruote,posta,k,1
                                 nu2(1) = n6:nu2(2) = n7
                                 co = co + 1
                                 ImpostaGiocata co,nu2,ruote,poste,k
                                 nu2(2) = n8
                                 co = co + 1
                                 ImpostaGiocata co,nu2,ruote,poste,k
                                 nu3(1) = n6:nu3(2) = n7:nu3(3) = n8
                                 co = co + 1
                                 ImpostaGiocata co,nu3,ruote,post,k
                                 co = co + 1
                                 ImpostaGiocata co,nu3,ruota,post,k
                                 Gioca es
                              End If
                           End If
                           'End If'ambi isotopi
                        Next
                     Next
                  End If'lasciare per solo diametr. e consec
               Next
            Next
         Next
      Next
   Next
   Scrivi String(58,"=") & " script by maxma62",1
   ScriviResoconto
   ColoreTesto 1:Scrivi "lotto facile 1 di o_manara (script by maxma62)",1
End Sub
 

Ultima estrazione Lotto

  • Estrazione del lotto
    venerdì 03 maggio 2024
    Bari
    38
    11
    08
    19
    81
    Cagliari
    69
    50
    27
    65
    06
    Firenze
    60
    05
    42
    75
    84
    Genova
    17
    29
    71
    48
    80
    Milano
    02
    33
    81
    85
    63
    Napoli
    12
    10
    29
    51
    84
    Palermo
    04
    21
    69
    79
    50
    Roma
    62
    72
    84
    30
    90
    Torino
    41
    33
    46
    03
    68
    Venezia
    03
    29
    10
    85
    33
    Nazionale
    72
    03
    82
    37
    58
    Estrazione Simbolotto
    Milano
    19
    22
    24
    08
    32
Alto