E
E
ezbooz2021-06-08 20:10:12
autohotkey
ezbooz, 2021-06-08 20:10:12

From the number 1000 to make 10:00?

Greetings to all, in general, I made a script for the game, which should count the time.

#SingleInstance, force


F2::
x = %clipboard%
y:=x+500
z:=x+800
zz:=x+1100

clipboard := "Аегис: " y " Рошан: " z "-" zz


The script works like this, there will be a number in the clipboard, for example "1000", the script adds and the output is 1500 , 1800 and 2100. It is necessary that the output numbers be like "15:00", "18:00" and "21: 00"
How can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
wisgest, 2021-06-09
@ezbooz

substr()

x := 1234

x := SubStr(x, 1, StrLen(x)-2) ":" SubStr(x, -1)
MsgBox % x

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question