Scolring - Forum

Entraides et échanges autour de la technologie Scol - Informations and exchanges on the Scol technology

Vous pouvez changer la langue de l'interface une fois inscrit - You can change the language once registered

You are not logged in.

#1 7-Jan-2013 21:27:03

dhika11march
Member
From: Indonesia
Registered: 30-Mar-2012
Posts: 227

timer event

hello, can I make a timer for my app from start running until close?
so, i want if the start running then the timer start and if I close the app, there's a message dialogue show the time that spend. i want to implemented it on game.

i have try with timer plugit and dialogue box inst plugit, but no result.

Offline

#2 8-Jan-2013 15:37:48

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: timer event

hmm there is no plugIT to manage this at this time, but the code should be very easy smile

Offline

#3 9-Jan-2013 16:25:07

dhika11march
Member
From: Indonesia
Registered: 30-Mar-2012
Posts: 227

Re: timer event

what do you mean?

Offline

#4 9-Jan-2013 21:09:46

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: timer event

Hi,

This simple plugIT should do what do you want ....

Files :
http://redmine.scolring.org/projects/op … isc/chrono

Help :
http://www.scolring.org/files/os3d/plugits/help/chrono/

Screenshot :
chrono

An action : ReadNumber (to get the number of elapsed milliseconds) or ReadString (to get a human readable string of the elapsed time)
An event : Number (with the action ReadNumber) or String (with the action ReadString) -> misc.dialogBox for example

Offline

#5 10-Jan-2013 08:10:10

dhika11march
Member
From: Indonesia
Registered: 30-Mar-2012
Posts: 227

Re: timer event

ok thanks iri, i will try soon..

Offline

#6 10-Jan-2013 09:37:16

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: timer event

great iri, I was about to make it smile
seconds don't have a "e" in english.
and maybe a format "dd mm:ss:ms" could be added.

Offline

#7 10-Jan-2013 11:19:23

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: timer event

arkeon wrote:

seconds don't have a "e" in english.

My Scol is in french, the plugIT returns the string from the user language smile

arkeon wrote:

and maybe a format "dd mm:ss:ms" could be added.

I'll make it, it's quick to do

Offline

#8 10-Jan-2013 14:37:34

arkeon
Admin. / Scol language & OpenSpace3D developer
From: Nantes
Registered: 30-Mar-2009
Posts: 5,161
Website

Re: timer event

ok cool smile

Offline

#9 10-Jan-2013 18:30:11

iri
Admin. / Scol language & Scol apps developer
From: France
Registered: 22-Feb-2009
Posts: 2,024
Website

Re: timer event

done !

The format is : dd_hh:mm:ss:ms (example "0_0:12:4:124" [=> 0 day 0 hour 12 minutes 4 seconds and 124 milliseconds])
The help file has been updated.

Offline

Board footer

Powered by FluxBB