Foro de elhacker.net

Programación => Scripting => Mensaje iniciado por: dArKo2 en 27 Julio 2010, 04:07 am



Título: cual es el error?
Publicado por: dArKo2 en 27 Julio 2010, 04:07 am
al intentar ejecutar un VBS me dice que hay un error en la linea siete supuestamente en el caracter 79 o algo asi...aqui la linea de codigo

Código:
if Month(Now())=7 then MsgBox"The summer is almost ending :'(",48,"Aha!"
if Month(Now())=8 then MsgBox"August is in jail, it isn't a month anymore",16,"Is just a big joke.."
if Month(Now())=9 then MsgBox"I hate Christmass, Don't you?",48,Christmassive"
if Month(now())=10 then MsgBox"I'm an Atheist",48,"I admit it"
if Month(Now())=11 then MsgBox"Is almost here buddy",48,"I really hate it..."
if Month(Now())=12 then MsgBox"Is here, i hate christmass i really hate it, i do bad stuff when i'm angry",48,"I hate it"


Título: Re: cual es el error?
Publicado por: Novlucker en 27 Julio 2010, 04:25 am
Antes de Christmassive falta una comilla "

Saludos


Título: Re: cual es el error?
Publicado por: Shell Root en 27 Julio 2010, 05:51 am
Novlucker, cual? XD
Código
  1. if Month(Now())=7 then MsgBox"The summer is almost ending :'(",48,"Aha!"
  2. if Month(Now())=8 then MsgBox"August is in jail, it isn't a month anymore",16,"Is just a big joke.."
  3. if Month(Now())=9 then MsgBox"I hate Christmass, Don't you?",48,"Christmassive"
  4. if Month(now())=10 then MsgBox"I'm an Atheist",48,"I admit it"
  5. if Month(Now())=11 then MsgBox"Is almost here buddy",48,"I really hate it..."
  6. if Month(Now())=12 then MsgBox"Is here, i hate christmass i really hate it, i do bad stuff when i'm angry",48,"I hate it"


Título: Re: cual es el error?
Publicado por: dArKo2 en 27 Julio 2010, 19:27 pm
gracias nov, ya que estamos en este topic tambien quiero saber cual seria la manera en que pudiese hacer una barra de progreso al menos una simple se que puedo contar con ventanitas pero prefiero meterle una progressbar que por lo menos dure unos 30 segundos..






saludos


Título: Re: cual es el error?
Publicado por: Novlucker en 27 Julio 2010, 19:31 pm
:http://www.northatlantawebdesign.com/index.php/2009/07/16/simple-vbscript-progress-bar/

La manera que conozco es como esta o similar, la cuestión es dibujar la barra de progreso con el objeto internetexplorer.application, y no es nada simple :-X

Saludos