angel83 Posted April 17 Share Posted April 17 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 More sharing options...
Developers Jos Posted April 17 Developers Share Posted April 17 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 More sharing options...
angel83 Posted April 18 Author Share Posted April 18 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 More sharing options...
argumentum Posted April 18 Share Posted April 18 23 minutes ago, angel83 said: Hello Jose, I apologize .... I don't like you. In any language. 23 minutes ago, angel83 said: I am just asking for help on how to do it or where to look for it or examples that can help me. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
angel83 Posted April 18 Author Share Posted April 18 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 More sharing options...
argumentum Posted April 18 Share Posted April 18 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. Link to comment Share on other sites More sharing options...
argumentum Posted April 18 Share Posted April 18 ....and don't get me in trouble. The one chatting with you is well respected by me and a moderator in this site. And I didn't like your typo in regards to the name. And don't say "my English", I've read every post you made. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
angel83 Posted April 18 Author Share Posted April 18 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 More sharing options...
angel83 Posted April 18 Author Share Posted April 18 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 More sharing options...
angel83 Posted April 18 Author Share Posted April 18 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 More sharing options...
argumentum Posted April 18 Share Posted April 18 ..just a note to tell you that you are now in my ignore list. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
angel83 Posted April 18 Author Share Posted April 18 why? what am i doing wrong? please explain it to me. please explain it to me. i want to do things right. Link to comment Share on other sites More sharing options...
Developers Jos Posted April 18 Developers Share Posted April 18 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 argumentum 1 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 More sharing options...
Recommended Posts