Jump to content

save the elapsed time of my timer.


Recommended Posts

Hello, I am looking for a way to save the elapsed time of my timer.
 When you I close timer.au3
 EXAMPLE: 1:52 minutes and seconds  when you run timer.au3 again, it continues where it left off.

If you can give me an example or where to look in advance, thank you

Link to comment
Share on other sites

  • Developers

Looks like a very familiar question of 2 previous topics closed.....  right?
Thought we discussed this both in open forum as well as PMs?

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Hello Jose, I apologize for the misunderstandings.
I'm just learning to program with autoit.
If the problem is that you don't want me to post about the stopwatch? I understand you.
but in this case I just want to learn how to program with autoit.

I don't know what the problem is that you have with me and I would like to solve it?
I've already apologized to you,  about my question, I just want you to save the elapsed time and then continue where you left off.
I am just asking for help on how to do it or where to look for it or examples that can help me. just that

sorry for my bad English, I hope you understand me.

Link to comment
Share on other sites

thanks argumentum for replying. what I am looking for is how to save the time as soon as I close it Chronometer.au3
example:
time -05:35 and I close it .au3. 
when I open the .au3 again it will continue in the time -05:34.

Link to comment
Share on other sites

5 minutes ago, angel83 said:

how to save the time as soon as I close it Chronometer.au3

I don't see that include. Nor any code. Don't upload the script as I will not download it. When posting code, do it in a code box. Make sure is running code and not just chucks. 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

AdlibRegister("Reloj", 1000)
HotKeySet("{esc}", "salida1")

$segundos = 3600

GUICreate("Temporizador", 181, 50)
GUISetBkColor(0x000000)
GUICtrlCreateLabel("00:00:00", 10, 0, 200, 70)
GUICtrlSetFont ( -1, 30, 800 )
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetColor( -1, 0xFFFFFF)
GUISetState (@SW_SHOW)

Mientras que True
          $minutos = Mod($segundos/60, 60)
          $horas = $segundos/3600
          $display = StringFormat("%02i:%02i:%02i", $horas, $minutos, Mod($segundos, 60) )
          WinSetOnTop("Hora", "", 1)
     WEnd

Func reloj()
      Si $segundos > 0 Entonces
          $segundos -= 1
   EndIf
    GUICtrlSetData(-1, $display)
EndFunc

Func exit1()
      salir
EndFunc

Link to comment
Share on other sites

I understand you and believe me I don't want to have problems with anyone on this site.
I am Mexican so I don't know much English and I use translator.
If I said something bad about Joe I apologize. I am a good and respectful person.

Link to comment
Share on other sites

AdlibRegister("Clock", 1000)
HotKeySet("{esc}", "exit1")

$seconds = 3600

GUICreate("Timer", 181, 50)
GUISetBkColor(0x000000)
GUICtrlCreateLabel("00:00:00", 10, 0, 200, 70)
GUICtrlSetFont ( -1, 30, 800 )
GUICtrlSetBkColor(-1, 0x000000)
GUICtrlSetColor(-1, 0xFFFFFF)
GUISetState (@SW_SHOW)

While True
          $minutes      = Mod($seconds/60, 60)
          $hours          = $seconds/3600
          $display        = StringFormat("%02i:%02i:%02i", $hours, $minutes, Mod($seconds, 60))
          WinSetOnTop("Time", "", 1)
     WEnd

Func clock()
      If $seconds >  0 Then
          $seconds -= 1
   EndIf
    GUICtrlSetData(-1,  $display)
EndFunc

Func exit1()
      exit
EndFunc

Link to comment
Share on other sites

  • Developers
3 hours ago, argumentum said:

I didn't like your typo in regards to the name.

I am used to the fact that hardly anybody outside the Netherlands (and Belgium) can't pronounce my name or can spell it as it isn't common outside of these countries. In this case the OP's language is Spanish, so hence the José. 

My point is really I do not like to be "played" with, When we close 2 topics that are about timers in relation with games and in a PM we don't come any closer to me feeling it is legitimate, one has to understand that these forum rules have to be adhered to! Nothing personal!

so for the final time *click*. any subsequent posts that even smell like timer will get you banned from these forums

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Jos locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...