Hola de nuevo a Muchos les gusta el modo GUi o venta la cual ofrece la edicion de la fonts color y demas cosas
en este nuevo modelo de timer el cual es su autor es
Robo Z .
Esta basado en el codigo 2v mas algunas variales en modo GUI y sonidos estos ultimos puedes descargarlos desde el hilo de NGD para seguirlo ^^ .
#SingleInstance,Force
#Persistent
Configuración:
IfNotExist,Configurador.ini
{
IniWrite,60,Configurador.ini,Configuración,NroMinutos
;IniWrite,UbicacionDeTuJuego,Configurador.ini,Configuración,RutaDelJuego
}
IniRead,NroMinutos,Configurador.ini,Configuración,NroMinutos
;IniRead,RutaDelJuego,Configurador.ini,Configuración,RutaDelJuego
;IniciarJuego:
;Run, %RutaDelJuego%
Tiempo:=NroMinutos*60
MostrarTiempo:
Gui +AlwaysOnTop -Caption +LastFound +Center
WinSet, TransColor, EEAA99
Gui, font, cBlue s20 bold, Comic Sans MS
Gui, Add, Text, vTime, Tiempo Restante: %Tiempo% Segundos
Gui, Color, EEAA99
Gui, Show, xCenter y,
SetTimer, Actualizar, 1000
return
Actualizar:
Tiempo-=1
if Tiempo between 31 and 3600
{
Gui,font, cBlue s20 bold, Comic Sans MS
;Gui,font, cBlue s12 bold, Comic Sans MS
GuiControl,font,time
GuiControl, , Time, Tiempo Restante: %Tiempo% Segundos
}
else if Tiempo between 21 and 30
{
Gui,font, cYellow s20 bold, Comic Sans MS
;Gui,font, cYellow s15 bold, Comic Sans MS
GuiControl,font,time
GuiControl, , Time, Tiempo Restante: %Tiempo% Segundos
}
else if Tiempo between 11 and 20
{
Gui,font, cRed s20 bold, Comic Sans MS
;Gui,font, cRed s17 bold, Comic Sans MS
GuiControl,font,time
GuiControl, , Time, Tiempo Restante: %Tiempo% Segundos
}
else if Tiempo between 1 and 10
{
Gui,font, cRed s20 bold, Comic Sans MS
;Gui,font, cRed s17 bold, Comic Sans MS
GuiControl,font,time
GuiControl, , Time, Tiempo Restante: %Tiempo% Segundos
SoundPlay, .\Sonidos\Cuenta.wav
Sleep,2000
}
if Tiempo <= 0
{
Gui,font, cRed s20 bold, Comic Sans MS ç
GuiControl,font,time
GuiControl, , Time, Tiempo Terminado!
SoundPlay, .\Sonidos\TiempoTerminado.wav
Sleep,1500
Process, Close, Game.exe
ExitApp }
5::
SoundPlay, .\Sonidos\TiempoAgregado.wav
Tiempo+=NroMinutos*60
return
Salir:
Escape::
SoundPlay, .\Sonidos\Salir.wav
Sleep,1500
Process, Close, Game.exe
ExitApp
Muchas gracias a todos los que colaboran dia a dia ....^^