Simple Overlay Timer for a game
Simple Overlay Timer for a game
Hello everybody!
I need a timer which counts from 30 minutes to 0, which should be shown on a small overlay in a game (GTA: SAMP)
For example, i press f1 for start.
Can someone help me?
I need a timer which counts from 30 minutes to 0, which should be shown on a small overlay in a game (GTA: SAMP)
For example, i press f1 for start.
Can someone help me?
Re: Simple Overlay Timer for a game
Hallo,
try:
try:
Code: Select all
F1::
Time = 20000101003000
SetTimer, Clock, 1000
Clock:
FormatTime, Clock, %Time%, mm:ss
Time += -1, Seconds
ToolTip, %Clock%, 200, 100
IF Clock = 00:00
SetTimer, Clock, Off
Return
Re: Simple Overlay Timer for a game
Hello, good morning mate, sorry for the question, I tried to increase the font size but I couldn't. Gui, Font, s32; Set a large font size (32-point).
Any suggestions, I have no programming knowledge
Any suggestions, I have no programming knowledge
Re: Simple Overlay Timer for a game
Code: Select all
Gui, Font, s32
Gui, Add, Text,, Test
Gui, Show, x40
Gui, New
Gui, Font, s60
Gui, Add, Text,, Test
Gui, Show, x250
Re: Simple Overlay Timer for a game
Thanks friend but with this code I want the font to be larger, since the window where 30 minutes is shown is very small
[Mod edit: [code][/code] tags added.]
Code: Select all
F1::
Time = 20000101003000
SetTimer, Clock, 1000
Clock:
FormatTime, Clock, %Time%, mm:ss
Time += -1, Seconds
ToolTip, %Clock%, 200, 100
IF Clock = 00:00
SetTimer, Clock, Off
Return
Re: Simple Overlay Timer for a game
Code: Select all
width := 180, time := 20000101003000
Gui -Caption
Gui, Font, s32
Gui, Add, Text, w%width% vtext
Gui, Show, w%width%, Timer
SetTimer, Clock, 1000
Clock:
FormatTime, clock, %time%, mm:ss
time += -1, Seconds
GuiControl,, text, %clock%
If (clock = "00:00")
SetTimer, Clock, Off
Return
Re: Simple Overlay Timer for a game
Compañero una pregunta estoy intentando que lea un archivo, configuracion.ini la posición del tiempo en pantalla y tamaño de letra por ejemplomikeyww wrote: ↑10 Jan 2021, 23:29Code: Select all
width := 180, time := 20000101003000 Gui -Caption Gui, Font, s32 Gui, Add, Text, w%width% vtext Gui, Show, w%width%, Timer SetTimer, Clock, 1000 Clock: FormatTime, clock, %time%, mm:ss time += -1, Seconds GuiControl,, text, %clock% If (clock = "00:00") SetTimer, Clock, Off Return
Code: Select all
ApplicationName=D:\Tarea
IfNotExist , %ApplicationName%.ini
{
IniWrite , 100, %ApplicationName%.ini, Configuracion, PocicionX
IniWrite , 5, %ApplicationName%.ini, Configuracion, PocicionY
IniWrite , 32, %ApplicationName%.ini, Configuracion, tamaño_letra
}
IniRead , NroMinutos, %ApplicationName%.ini, Configuracion, NroDeMinutos
IniRead , X, %ApplicationName%.ini, Configuracion, PocicionX
IniRead , Y, %ApplicationName%.ini, Configuracion, PocicionY
IniRead , Font, %ApplicationName%.ini, Configuracion, tamaño_letra
Pero no me funciona cual podría ser el error.
Re: Simple Overlay Timer for a game
If you don't write NroMinutos, then you won't be able to read it, but you could set a default value instead.
Explained: IniRead
Explained: IniRead