Novità

Richiesta script Spaziometria per Test formula

Matematico5

Super Member >PLATINUM<
Buon pomeriggio a tutti, chiedo gentilmente uno script per testare la seguente formula fissa :

Quando la Somma dei 5 estratti di una qualsiasi ruota fa 147

e il 1° estratto e' 1

Si metteranno in gioco :ambata 5 x ambo-terno : 77-14-5-1

Se possibile creare un imput-box x inserire anche altre somme dei 5 diverse ....e un'altro per inserire le restanti posizioni estratti .

Grazie infinite !:)
 
Ciao Matematico :)


Codice:
Sub Main()
	Scrivi: ColoreTesto 1: Scrivi String(38," ") & " Metodo di Matematico Listato By Blackmore"
	Scrivi: ColoreTesto 0
	Dim ruota(10) : Dim ambata(1) : Dim lunghetta(5) : Dim posta(1) : Dim poste(3): Dim a1(1) : Dim b1(4)
	posta(1) = 1 : poste(2) = 1 : poste(3) = 1
	t = 0
	ss = CInt(InputBox("INSERISCI  LA  SOMMA  DEI  5  ESTRATTI",,147))
	p = CInt(InputBox("SCEGLI  LA  POSIZIONE  DELL' ESTRATTO",,1))
	j = CInt(InputBox("SCEGLI  L' ESTRATTO",,1))
	k = InputBox("INSERISCI  I  COLPI DI  GIOCO",,10)
	ff = InputBox("INSERISCI  L' AMBATA",," 5 ")
	ff = "0." & ff
	h = Split(ff,".")
	f1 = CInt(h(1))
	a1(1) = f1
	ff = InputBox("INSERISCI  LA  LUNGHETTA",," 5.1.14.77 ")
	ff = "0." & ff
	h = Split(ff,".")
	f1 = CInt(h(1)) : f2 = CInt(h(2)) : f3 = CInt(h(3)): f4 = CInt(h(4))
	b1(1) = f1 : b1(2) = f2 : b1(3) = f3 : b1(4) = f4
	ini = EstrazioneIni
	fin = EstrazioneFin
	For es = ini To fin
		Messaggio "elab. n° " & es & " del " & DataEstrazione(es) & " [ Metodo di Matematico Script By Blackmore ]"
		For r1 = 1 To 12
			If r1 = 11 Then r1 = 12
			a =(SommaEstratti(es,r1))
			b = Estratto(es,r1,p)
			If a = ss Then
				If b = j Then
					t = t + 1
					ruota(1) = r1
					Scrivi String(100,"*") & " Caso n° " & Format2(t),1
					ColoreTesto 1:Scrivi DataEstrazione(es) & "    " & SiglaRuota(r1) & "    " & StringaEstratti(es,r1) & "    " & p & "° Estratto = 1     Somma Estratti = " & a
					ColoreTesto 0: Scrivi
					ImpostaGiocata 1,a1,ruota,posta,k,1
					ImpostaGiocata 2,b1,ruota,poste,k
					Gioca es
				End If
			End If
		Next
		If ScriptInterrotto Then Exit For
	Next
	ScriviResoconto
End Sub
 
salve a tutti , per black o chi mi puo aiutare, vorrei chiedere se era possibile modificare il script sopra impostato, in pratica non fare la somma dei 5 estratti ma soltanto di due .
grazie saluti garcid
 
Imparate a fare (o modificare) questi benedetti script

Almeno quelli più semplici (come i miei)... Ciao
:)


Codice:
Sub Main()
	Scrivi: ColoreTesto 1: Scrivi String(30," ") & " Metodo di Matematico Modificato Listato By Blackmore"
	Scrivi: ColoreTesto 0
	Dim ruota(10) : Dim ambata(1) : Dim lunghetta(5) : Dim posta(1) : Dim poste(3): Dim a1(1) : Dim b1(4)
	posta(1) = 1 : poste(2) = 1 : poste(3) = 1
	t = 0
	ss = CInt(InputBox("INSERISCI  LA  SOMMA  DEI  2  ESTRATTI",,90))
	p = CInt(InputBox("SCEGLI  LA  POSIZIONE  DEL 1° ESTRATTO",,1))
	pp = CInt(InputBox("SCEGLI  LA  POSIZIONE  DEL 2° ESTRATTO",,2))
	'j = CInt(InputBox("SCEGLI  L' ESTRATTO",,1))
	k = InputBox("INSERISCI  I  COLPI DI  GIOCO",,10)
	ff = InputBox("INSERISCI  L' AMBATA",," 5 ")
	ff = "0." & ff
	h = Split(ff,".")
	f1 = CInt(h(1))
	a1(1) = f1
	ff = InputBox("INSERISCI  LA  LUNGHETTA",," 5.1.14.77 ")
	ff = "0." & ff
	h = Split(ff,".")
	f1 = CInt(h(1)) : f2 = CInt(h(2)) : f3 = CInt(h(3)): f4 = CInt(h(4))
	b1(1) = f1 : b1(2) = f2 : b1(3) = f3 : b1(4) = f4
	ini = EstrazioneFin - 500
	fin = EstrazioneFin
	For es = ini To fin
		Messaggio "elab. n° " & es & " del " & DataEstrazione(es) & " [ Metodo di Matematico Script By Blackmore ]"
		For r1 = 1 To 12
			If r1 = 11 Then r1 = 12
			a = Estratto(es,r1,p)
			b = Estratto(es,r1,pp)
			If a+b = ss Then
				'If b = j Then
					t = t + 1
					ruota(1) = r1
					Scrivi String(100,"*") & " Caso n° " & Format2(t),1
					ColoreTesto 1:Scrivi DataEstrazione(es) & "    " & SiglaRuota(r1) & "    " & StringaEstratti(es,r1) & "  Somma Dei 2 Estratti  " & a & "-" & b & " = " & ss
					ColoreTesto 0: Scrivi
					ImpostaGiocata 1,a1,ruota,posta,k,1
					ImpostaGiocata 2,b1,ruota,poste,k,2
					Gioca es
				End If
			'End If
		Next
		If ScriptInterrotto Then Exit For
	Next
	ScriviResoconto
End Sub
 
grazie black per la modifica , hai ragione ma se fossi capace a modificare o creare i metodi certamente farei di tutto per non disturbare nessuno ,con la età e i studi fatti è praticemente impossibile ciao e grazie
 

Ultima estrazione Lotto

  • Estrazione del lotto
    sabato 05 luglio 2025
    Bari
    25
    89
    22
    77
    56
    Cagliari
    05
    87
    46
    70
    49
    Firenze
    17
    85
    66
    59
    54
    Genova
    90
    65
    07
    44
    62
    Milano
    60
    84
    26
    78
    43
    Napoli
    71
    78
    86
    76
    84
    Palermo
    23
    42
    82
    60
    88
    Roma
    86
    60
    85
    19
    01
    Torino
    59
    30
    54
    29
    60
    Venezia
    90
    20
    71
    03
    81
    Nazionale
    70
    36
    74
    27
    38
    Estrazione Simbolotto
    Nazionale
    02
    32
    40
    16
    19

Ultimi Messaggi

Indietro
Alto