Novità

AIUTO SCRIPT

trivellatomariotretre33

Super Member >PLATINUM<
RICERCARE IN DUE ESTRAZIONI CONSECUTIVE DUE NUMERI VERTIBILI (PURI=15 51=63 36= 47 74=ECC.ECC.)SU UNA RUOTA, I QUALI DEVONO ESSERE UNITI MA NON ISOTOPI,ATTENZIONE A QUESTA CARATERISTICA..
NELL'ATTESA AUGURI DI BUONE FESTE.GRAZIE
 
Ciao al momento non posso essere d aiuto ma per fare uno script serve sapere cosa cercare e come utilizzare quello che si cerca altrimenti bisogna riprenderlo in mano varie volte e viene illeggibile anche per chi lo scrive.
L Algoritmo è un ragionamento logico.
Rovere i dati non penso sia complicatissimo ma che ci devo fare? Li devo scrivere ? Raccogliere in un arRay? Fare delle operazioni?
Ecco così se qualcuno può aiutare può organizzarsi al meglio. Ciao :)
 
Codice:
' controllare  script scritto con il cell 
' verificare  che  i risultati della  ricerca  siano  corretti 
' 
Sub main 
Dim E, E1, E2 
Dim idestr, R, p, p1, p2 
R = ScegliRuota 
For idestr = 1 To estrazionefin 
For p = 1 To 5 
Messaggio  idestr 
If  p>1 Then 
P1 = p-1
E1= estratto ( idestr, r, p1 ) 
Else 
E1=0
End  if 
If p < 5  then 
P2 =p + 1 
E2 = estratto ( idestr, r, p2 ) 
Else 
E2 = 0 
End if 
E = estratto ( idestr + 1, r, p ) 
If  GetVert ( E, E1, E2 ) Then 
Scrivi  getinfoestrazione ( idestr, r) & "     "& stringaestratti ( idestr, r ) 
Scrivi  getinfoestrazione  ( idestr + 1 ) & " ---" & stringaestratti ( idestr + 1 , r ) 
End If 
Next 
Next 
End  sub
 
Ultima modifica:
Function getVert (E,E1, E2)
Dim bRet
If cadenza (E) < > 0 and cadenza (E) < > 9 then
If cadenza (E1) < > 0 and cadenza (E1) < > 9 then
If cadenza (E2) < > 0 and cadenza (E2) < > 9 then
If vert (E)=E1 or vert ( E)= E2 then
bRet= true
End if
End if
End if
End if
GetVert =bRet
End function Function
Lo script non accetta il simbolo " diverso "
Controllare eventuali bugs
Salvo errori
Fatemi sapere
Buon fine anno.
 
Ultima modifica:
Scrivere la funzione nella stessa pagina della sub main
Purtroppo se le scrivevo nello stesso post lo script usciva tagliato
 
i legend;n1948556 ha scritto:
Function getVert (E,E1, E2)
Dim bRet
If cadenza (E) < > 0 and cadenza (E) < > 9 then
If cadenza (E1) < > 0 and cadenza (E1) < > 9 then
If cadenza (E2) < > 0 and cadenza (E2) < > 9 then
If vert (E)=E1 or vert ( E)= E2 then
bRet= true
End if
End if
End if
End if
GetVert =bRet
End function Function
Lo script non accetta il simbolo " diverso "
Controllare eventuali bugs
Salvo errori
Fatemi sapere
Buon fine anno.

ERRORE SCRIPT If Cadenza (E) < > 0 And Cadenza (E) < > 9 Then
 
Lo srcipt intero ... provatelo
Codice:
' controllare  script scritto con il cell
' verificare  che  i risultati della  ricerca  siano  corretti
'
Sub Main
    Dim E,E1,E2
    Dim idestr,R,p,p1,p2
    R = ScegliRuota
   ' For idestr = 1 To EstrazioneFin
    For idestr = 1 To EstrazioneFin - 1 ' variato da indicazione di I legend
        For p = 1 To 5
            Messaggio idestr
            If p > 1 Then
                p1 = p - 1
                E1 = Estratto(idestr,R,p1)
            Else
                E1 = 0
            End If
            If p < 5 Then
                p2 = p + 1
                E2 = Estratto(idestr,R,p2)
            Else
                E2 = 0
            End If
            E = Estratto(idestr + 1,R,p)
            If getVert(E,E1,E2) Then
                Scrivi GetInfoEstrazione (idestr) & "     " & StringaEstratti(idestr,R)
                Scrivi GetInfoEstrazione(idestr + 1) & " ---" & StringaEstratti(idestr + 1,R)
            End If
        Next
    Next
End Sub
Function getVert(E,E1,E2)
    Dim bRet
    If Cadenza(E)<>0 And Cadenza(E)<>9 Then
        If Cadenza(E1) <> 0 And Cadenza(E1) <> 9 Then
            If Cadenza(E2) <> 0 And Cadenza(E2) <> 9 Then
                If Vert(E) = E1 Or Vert(E) = E2 Then
                    bRet = True
                End If
            End If
        End If
    End If
    getVert = bRet
End Function
 
Ultima modifica:
Felice anno nuovo;)
Ciao Claudio grazie mille per aver ricomposto il codice :)
avevo problemi di connessione.e ho dovuto scrivere con il cell...
avevo dimentoicato di scrivere
for idestr= 1 to estrazionefin -1
-1 perchè facciamo idestr+1
Ciao
 
ciao alien non saprei
salvo errori (sempre possibile) credo che lo script faccia quello richiesto ma posso aver interpretato male:)
ciao a tutti
 

Ultima estrazione Lotto

  • Estrazione del lotto
    sabato 11 ottobre 2025
    Bari
    04
    25
    41
    83
    90
    Cagliari
    16
    81
    09
    87
    82
    Firenze
    67
    13
    08
    49
    39
    Genova
    29
    61
    54
    15
    22
    Milano
    06
    11
    08
    48
    53
    Napoli
    60
    13
    46
    67
    63
    Palermo
    78
    72
    54
    02
    58
    Roma
    35
    47
    89
    25
    77
    Torino
    39
    27
    35
    30
    85
    Venezia
    36
    32
    47
    63
    73
    Nazionale
    17
    33
    10
    51
    28
    Estrazione Simbolotto
    10
    11
    43
    13
    04

Ultimi Messaggi

Indietro
Alto