101
Mach4 General Discussion / Re: slider display issue
« on: May 01, 2017, 03:39:39 AM »
It's solved with 3376 - thank you very much!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
function SecondsToTime(seconds)
if seconds == 0 then
return "00:00:00.00"
else
local hours = string.format("%02.f", math.floor(seconds/3600))
local mins = string.format("%02.f", math.floor((seconds/60) - (hours*60)))
local secs = string.format("%04.2f",(seconds - (hours*3600) - (mins*60)))
mc.mcCntlSetLastError(inst, "secs " .. secs)
return hours .. ":" .. mins .. ":" .. secs
end
end
you can see the result in the errorline of the attached screenshot.function SecondsToTime(seconds)
if seconds == 0 then
return "00:00:00.00"
else
local hours = math.floor(seconds/3600)
local mins = math.floor((seconds/60) - (hours*60))
local tmp = seconds - (hours*3600) - (mins*60)
local secs = math.floor(tmp)
local rest = math.floor((tmp - secs) * 100)
return string.format('%02d:%02d:%02d.%02d', hours, mins, secs, rest)
end
end
So please do not blame us.Please take for granted, that I don't want to blame you. I'm far away from that point and if anything I write sounds like that, than its sourced by the lack of my english and not by the spirit to blame you.
And part of keeping it affordable is not having it pirated.100% agreed!
The LUA function SecondsToClock() does the format. This function is defined in the screen load script and is thus available to all screen scripts.Ok, found a menuentry to view the script, but no way to edit it.
Mach 4 is not Mach 3.I already read and understood that. I read the threads about feature requests and bug reports ...
I would suggest reading the API documentationYes sir, I already did.
The reason is that lets the hackers know what to look for to try and disable the timeout!Hehe - in germany there's a phone company called "O2" - which spends more menpower in disabling functionality than in supporting paying users. Hope you don't follow that direction