alessandro63
Member
Qualcuno possiede qualche script, può pubblicarlo? grazie
				
			Follow along with the video below to see how to install our site as a web app on your home screen.
Nota: This feature may not be available in some browsers.
Option Explicit
Sub Main()
   Dim ru(1)
   Dim nu1(90,3),nn1(2)
   Dim r,r1,zz,tmp,fin,Ini,es,a,casi,ess,co,xx,k1,wx,p1,sp
   r1 = 1
   r = InputBox(" Ruota della spia ?"," Immetti N° Ruota",1)
   sp = CInt(InputBox(" Quale spia ? "," Immetti N°spia","1"))
   p1 = InputBox(" Posizione della spia?"," Immetti Posizione",1)
   zz = InputBox("Quante estrazioni del ciclo da esaminare?"," Ciclo ?",9)
   tmp = InputBox("Quante estrazioni esaminiamo?","ESTRAZIONI ?",10348)
   fin = EstrazioneFin
   Ini = EstrazioneFin - tmp
   For es = Ini To fin
      Messaggio "Ricerca Spia " & " Data " & DataEstrazione(es)
      a = Estratto(es,r,p1)
      If a = sp Then
         casi = casi + 1
         ess = es + zz
         If ess > fin Then ess = fin End If
         co = 0
         For xx = 1 To 90
            co = co + 1
            nu1(co,1) = co
            nu1(co,2) = xx
            nn1(1) = xx
            ru(1) = r1
            k1 = SerieFreq(es + 1,ess,nn1,ru,1)
            If k1 > 1 Then k1 = 1
            nu1(co,3) = nu1(co,3) + k1
         Next
      End If
   Next
   OrdinaMatrice nu1,- 1,3
   ColoreTesto 0
   For wx = 1 To 20
      Scrivi Format2(nu1(wx,2)) & ".",1,0,4,,2
   Next
   Scrivi
   For wx = 1 To 20
      Scrivi Format2(nu1(wx,3)) & ".",,0
   Next
End Sub
	Sub Main
   Dim fp(5),Riga
   Ini = 8117
   fin = EstrazioneFin
   Scrivi "Numeri Frequenti In posizione"
   Scrivi
   r = InputBox("Quale Ruota",,1)
   T = "Num" & Space(2) & "P1  P2  P3  P4  P5" & Space(5) & "Min  Max" & Space(5) & " Ruota di " & NomeRuota(r)
   Scrivi T,1
   For n = 1 To 90
      ReDim aPos(5)
      For p = 1 To 5
         aPos(p) = True
         fp(p) = EstrattoFrequenza(r,n,Ini,fin,,,aPos)
         min = MinimoV(fp,1,- 1)
         max = MassimoV(fp)
         Riga = Riga & FormattaStringa(fp(p),"000" & " ")
      Next
      Scrivi FormatSpace(n,2) & " | " & Riga & " | " & min & " | " & max & " | "
      Riga = ""
   Next
End Sub
	
Sub Main
   'Ritardo & frequenze Posizionale
   Dim T
   Ini = 8117'EstrazioneIni
   fin = EstrazioneFin
   Scrivi Space(20) & "Frequenze" & Space(40) & "Ritardi",1
   r = InputBox("Quale Ruota",,1)
   T = Array(T,"Numero","Fp1","Fp2","Fp3","Fp4","Fp5","Min","Max"," - ","Rp1","Rp2","Rp3","Rp4","Rp5","Min","Max")
   Call InitTabella(T,0,,3,5,"arial balck")
   For n = 1 To 90
      For p = 1 To 5
         ReDim apos(5)
         apos(p) = True
         a = EstrattoFrequenza(r,n,Ini,fin,,,apos)
         b = EstrattoRitardo(r,n,Ini,fin,,,apos)
         ReDim Preserve pos(p)
         pos(p) = a
         ReDim Preserve por(p)
         por(p) = b
         min = MinimoV(pos,1,- 1)
         max = MassimoV(pos)
         minR = MinimoV(por,1,- 1)
         MaxR = MassimoV(por)
         'riga = riga & FormattaStringa(a,"000") & " "
      Next
      T = Array(T,n,pos(1),pos(2),pos(3),pos(4),pos(5),min,max,"--",por(1),por(2),por(3),por(4),por(5),minR,maxR)
      Call AddRigaTabella(T)
      Call SetColoreCella(1,6,0)
      Call SetColoreCella(7,3,0)
      Call SetColoreCella(8,4,0)
      Call SetColoreCella(9,0,5)
      Call SetColoreCella(15,3,0)
      Call SetColoreCella(16,4,0)
      For x = 2 To 6
         If T(x) = min Then Call SetColoreCella((x),3,1)
         If T(x) = max Then Call SetColoreCella((x),4,1)
      Next
      For xx = 10 To 14
         If T(xx) = minR Then Call SetColoreCella((xx),3,1)
         If T(xx) = maxR Then Call SetColoreCella((xx),4,1)
         If T(xx) = 0 Then Call SetColoreCella((xx),2,4)
      Next
   Next
   CreaTabella
End Sub