Novità

script per ambi

alexvisco

Member
Salve
Vorrei sapere se fosse possibile uno script per ambi secchi , in pratica il metodo sarebbe il seguente:
- Come da esempio estrazione, si trovano due numeri uguali isotopi (nostro caso Ruote Napoli, Palermo)
- Di questo numero nel nostro caso è il (25) su ruote si effettua il diametrale in decina ( aggiungendo +5 o - 5) ma si deve rimanere nella decina ( nel nostro caso è 20)
- Si trova la figura del numero principale ( nostro caso 25), quindi 7
- le combinazioni da giocare sarebbero ( 25-20 ) (20-7) (25-7)sempre su ruote Napoli e Palermo per i successivi colpi.
Pertanto sarebbe possibile creare uno script che ricerca nelle estrazioni due numeri uguali isotopici e crea in automatico la combinazione come descritto?
estratto.JPG
 

Allegati

  • estrazione.JPG
    estrazione.JPG
    24,3 KB · Visite: 0
  • estrazione.JPG
    estrazione.JPG
    24,3 KB · Visite: 0
  • estrazione.JPG
    estrazione.JPG
    24,3 KB · Visite: 0
  • estrazione.JPG
    estrazione.JPG
    24,3 KB · Visite: 0
  • estratto.JPG
    estratto.JPG
    87 KB · Visite: 0
  • estratto.JPG
    estratto.JPG
    87 KB · Visite: 0

salvo50

Advanced Member >PLATINUM PLUS<
Vedi se può andare

Codice:
Option Explicit
Sub Main
   Dim FIn,Es2,Ini,A,B,C,D,Clp,Es,Salvo50
   Dim R1,R2,P1,P2,P3,E1,E2,Caso,Casi,DiamDA,FigB
   Dim Ambo1(2),Ambo2(2),Ambo3(2),Ruo(2),Post1(2)
   FIn = EstrazioneFin
   Ini = CInt(InputBox("Inserisci l'estrazione che vuoi iniziare",Salvo50,9590))
   Clp = CInt(InputBox(" Per quanti colpi vuoi giocare?",Salvo50,10))
   Call ScegliRange(EstrazioneIni,FIn,Ini,EstrazioneFin)
   Scrivi Space(12) & " METODO ISOTOPI UGUALI chiesto da ALEXVISCO  - SCRIPT SALVO50",1,,4,,3,,1
   Post1(2) = 1
   For Es = Ini To FIn
      Messaggio Es
      AvanzamentoElab Ini,FIn,Es
      Caso = 0
      For R1 = 1 To 10
         For P1 = 1 To 5
            A = Estratto(Es,R1,P1)
            For R2 = R1 + 1 To 12
            If R2 = 11 Then R2 = 12
               B = Estratto(Es,R2,P1)
               If A = B Then
                  DiamDA = DiametraleD(A)
                  FigB = Figura(B)
                  If A <> FigB Then
                     Caso = Caso + 1
                     Casi = Casi + 1
                     Scrivi String(89,"*") & " Casi Totali " & FormattaStringa(Casi,"0000"),1,,,2
                     Scrivi String(80,"*") & " Estrazione " &(Es) & " caso " & FormattaStringa(Caso,"0000"),1,,,1
                     Scrivi(" Estrazione n." & Format2(Es) & " del " & DataEstrazione(Es)),1,0
                     Scrivi "  " & SiglaRuota(R1) & " ",1,0
                     For P2 = 1 To 5
                        E1 = Estratto(Es,R1,P2)
                        If E1 = A Then
                           ColoreTesto 2
                        Else
                           ColoreTesto 0
                        End If
                        Scrivi Format2(E1) & " ",1,0
                        ColoreTesto 0
                     Next
                     Scrivi
                     Scrivi(" Estrazione n." & Format2(Es) & " del " & DataEstrazione(Es)),1,0
                     Scrivi "  " & SiglaRuota(R2) & " ",1,0
                     For P3 = 1 To 5
                        E2 = Estratto(Es,R2,P3)
                        If E2 = B Then
                           ColoreTesto 2
                        Else
                           ColoreTesto 0
                        End If
                        Scrivi Format2(E2) & " ",1,0
                        ColoreTesto 0
                     Next
                     Scrivi
                     Scrivi
                     Scrivi " Estratto Isotopo uguale " & Format2(A) & "  Diametrale in Decina di ",1,0,,1
                     Scrivi Format2(B) & " è " & Format2(DiamDA),1,,,1
                     Scrivi Space(42) & " Figura di " & Format2(B) & " è " & Format2(FigB),1,,,2
                     Scrivi
                     Ruo(1) = R1
                     Ruo(2) = R2
                     Ambo1(1) = A : Ambo1(2) = DiamDA
                     ImpostaGiocata 1,Ambo1,Ruo,Post1,Clp,2
                     Ambo2(1) = DiamDA : Ambo2(2) = FigB
                     ImpostaGiocata 2,Ambo2,Ruo,Post1,Clp,2
                     Ambo3(1) = B : Ambo3(2) = FigB
                     ImpostaGiocata 3,Ambo3,Ruo,Post1,Clp,2
                     Gioca Es,1
                  End If
               End If
            Next
         Next
      Next
      If ScriptInterrotto Then Exit Sub
   Next
   ScriviResoconto
End Sub
 

alexvisco

Member
salvo50;n2163373 ha scritto:
Vedi se può andare

Codice:
Option Explicit
Sub Main
Dim FIn,Es2,Ini,A,B,C,D,Clp,Es,Salvo50
Dim R1,R2,P1,P2,P3,E1,E2,Caso,Casi,DiamDA,FigB
Dim Ambo1(2),Ambo2(2),Ambo3(2),Ruo(2),Post1(2)
FIn = EstrazioneFin
Ini = CInt(InputBox("Inserisci l'estrazione che vuoi iniziare",Salvo50,9590))
Clp = CInt(InputBox(" Per quanti colpi vuoi giocare?",Salvo50,10))
Call ScegliRange(EstrazioneIni,FIn,Ini,EstrazioneFin)
Scrivi Space(12) & " METODO ISOTOPI UGUALI chiesto da ALEXVISCO - SCRIPT SALVO50",1,,4,,3,,1
Post1(2) = 1
For Es = Ini To FIn
Messaggio Es
AvanzamentoElab Ini,FIn,Es
Caso = 0
For R1 = 1 To 10
For P1 = 1 To 5
A = Estratto(Es,R1,P1)
For R2 = R1 + 1 To 12
If R2 = 11 Then R2 = 12
B = Estratto(Es,R2,P1)
If A = B Then
DiamDA = DiametraleD(A)
FigB = Figura(B)
If A <> FigB Then
Caso = Caso + 1
Casi = Casi + 1
Scrivi String(89,"*") & " Casi Totali " & FormattaStringa(Casi,"0000"),1,,,2
Scrivi String(80,"*") & " Estrazione " &(Es) & " caso " & FormattaStringa(Caso,"0000"),1,,,1
Scrivi(" Estrazione n." & Format2(Es) & " del " & DataEstrazione(Es)),1,0
Scrivi " " & SiglaRuota(R1) & " ",1,0
For P2 = 1 To 5
E1 = Estratto(Es,R1,P2)
If E1 = A Then
ColoreTesto 2
Else
ColoreTesto 0
End If
Scrivi Format2(E1) & " ",1,0
ColoreTesto 0
Next
Scrivi
Scrivi(" Estrazione n." & Format2(Es) & " del " & DataEstrazione(Es)),1,0
Scrivi " " & SiglaRuota(R2) & " ",1,0
For P3 = 1 To 5
E2 = Estratto(Es,R2,P3)
If E2 = B Then
ColoreTesto 2
Else
ColoreTesto 0
End If
Scrivi Format2(E2) & " ",1,0
ColoreTesto 0
Next
Scrivi
Scrivi
Scrivi " Estratto Isotopo uguale " & Format2(A) & " Diametrale in Decina di ",1,0,,1
Scrivi Format2(B) & " è " & Format2(DiamDA),1,,,1
Scrivi Space(42) & " Figura di " & Format2(B) & " è " & Format2(FigB),1,,,2
Scrivi
Ruo(1) = R1
Ruo(2) = R2
Ambo1(1) = A : Ambo1(2) = DiamDA
ImpostaGiocata 1,Ambo1,Ruo,Post1,Clp,2
Ambo2(1) = DiamDA : Ambo2(2) = FigB
ImpostaGiocata 2,Ambo2,Ruo,Post1,Clp,2
Ambo3(1) = B : Ambo3(2) = FigB
ImpostaGiocata 3,Ambo3,Ruo,Post1,Clp,2
Gioca Es,1
End If
End If
Next
Next
Next
If ScriptInterrotto Then Exit Sub
Next
ScriviResoconto
End Sub

Grandissimo Salvo!!!
 

Ultima estrazione Lotto

  • Estrazione del lotto
    venerdì 19 aprile 2024
    Bari
    39
    05
    81
    89
    73
    Cagliari
    56
    21
    01
    90
    03
    Firenze
    05
    56
    68
    27
    09
    Genova
    42
    50
    90
    27
    83
    Milano
    16
    71
    29
    85
    04
    Napoli
    29
    19
    23
    63
    50
    Palermo
    35
    54
    33
    57
    61
    Roma
    17
    29
    43
    55
    74
    Torino
    69
    60
    03
    01
    26
    Venezia
    05
    57
    59
    43
    34
    Nazionale
    30
    43
    64
    65
    21
    Estrazione Simbolotto
    Genova
    02
    20
    25
    12
    19
Alto