Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/11/2015, 12:11
Bryanets
 
Fecha de Ingreso: noviembre-2008
Mensajes: 11
Antigüedad: 15 años, 5 meses
Puntos: 0
cmd y swf .net

Hola amigos, estoy tratando de aminar un .swf que avance de frame según avanza un archivo.cmd, me explico el .cmd segun va a avanzando mi textbox va mostrando

terminado 1
terminado 2
terminado 3
terminado 4

y deseo hacer esto

terminado 1
avanzar frame 1
terminado 2
avanzar frame 10
terminado 3
avanzar frame 20
terminado 4
avanzar frame 30

espero puedan ayudarme, aqui muestro el codigo :



Dim strArgumentos As String = "127.0.0.1"
Dim strExe As String = "C:\Users\Bryanets\AppData\Local\Temp\prueba.c md"


Dim startInfo As System.Diagnostics.ProcessStartInfo = New System.Diagnostics.ProcessStartInfo(strExe)

startInfo.UseShellExecute = False

startInfo.ErrorDialog = False

startInfo.CreateNoWindow = True

startInfo.RedirectStandardOutput = True

Try
Dim p As Diagnostics.Process = System.Diagnostics.Process.Start(startInfo)

Dim sr As System.IO.StreamReader = p.StandardOutput
Dim cadenaSalida As String = sr.ReadToEnd()
sr.Close()

TextBox1.Text = cadenaSalida


If (TextBox1.Text.Contains("1")) Then
flash.GotoFrame(1)
flash.Play()
End If
If (TextBox1.Text.Contains("2")) Then
flash.GotoFrame(10)
flash.Play()
End If
If (TextBox1.Text.Contains("3")) Then
flash.GotoFrame(20)
flash.Play()
End If
If (TextBox1.Text.Contains("4")) Then
flash.GotoFrame(30)
flash.Play()
End If
If (TextBox1.Text.Contains("5")) Then
flash.GotoFrame(39)
flash.Play()
End If
If (TextBox1.Text.Contains("6")) Then
flash.GotoFrame(50)
flash.Play()
End If