Total Clock Function Utility

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Total Clock Function Utility

    I am trying to create a "do all, say all" clock utility and have most things working. This is my first go at a AM7 project and would love a little help. The countdown and alarm functions seem to be kickin me in the tail....

    I have tried severl different combo's here and I know I am just not putting stuff in the right area or missing something very obvious.

    Any help would be great...
    Attached Files
  • pjborg
    Forum Member
    • Feb 2001
    • 120

    #2
    On your Alarm button, Button9, the Masked Input returns a table, not a string, and you'll need to make the other labels invisible before displaying the alarm time, so I changed it as follows:
    Code:
    tbl_result_alarm = Dialog.MaskedInput("Alarm", "Your alarm time:", "##:##:##", "12:00:00", MB_ICONQUESTION, " ");
    if tbl_result_alarm ~= nil then
    Label.SetText("lbl_Alarm", tbl_result_alarm.Displayed);
    Label.SetVisible("lbl_Time", false);
    Label.SetVisible("lbl_Timer", false);
    Label.SetVisible("lbl_Date", false);
    Label.SetVisible("lbl_Duration", false);
    Label.SetVisible("lbl_Alarm", true);
    end
    Hope that helps a bit. pj

    Comment


    • #3
      pjborg,

      Thanks for that code! I used it for the Timer button as well and now all the buttons are working proper.

      Now I just need to work on hte functionality of the Set Alarm and Timer...

      Thanks again, that worked great...
      Attached Files

      Comment


      • #4
        Dif pages?

        Do I need to make all these on dif. pages if I want them all to work at the same time? Since I am calling start timer with each option from the page do I need to have a page for each?

        Comment

        • holtgrewe
          Indigo Rose Customer
          • Jul 2002
          • 779

          #5
          search 'alarm'

          Here's a post from a few month's ago by longedge

          very nice example of an alarm with digital and analog clock.



          hth

          Comment


          • #6
            Alarm Now working

            Well I got the alarm working on page 2. Its in 24 hour time now, any suggestions on getting it into 12 hour and using the AM/PM would be great.

            I still havent got the countdown timer working yet. But I still think I might have to put each clock function on a new page because when I, say, select the time it starts the clock on that page so the stopwatch it running already when you hit it...

            Would also love to be able to load my own sound as the alarm...

            I will keep pluggin away at this and uploading my latest...
            Attached Files

            Comment


            • #7
              More Better!

              Well yet another... I cant quit! Okay this is my last post tonight...

              I almost have the file load for the alarm sound but I am missing something.

              Thanks to all!
              Attached Files

              Comment

              • rexzooly
                No longer a forum member
                • Jul 2007
                • 1512

                #8
                Originally posted by mrdmx1024 View Post
                Well yet another... I cant quit! Okay this is my last post tonight...

                I almost have the file load for the alarm sound but I am missing something.

                Thanks to all!
                still missing alot be seems to be a good idea


                :yes

                Comment


                • #9
                  I know there is still a lot to do... its my very first project and I am having a great time with it... Got any input for me?

                  Comment

                  • longedge
                    Indigo Rose Customer
                    • Aug 2003
                    • 2498

                    #10
                    Originally posted by mrdmx1024 View Post
                    Well yet another... I cant quit!
                    ...and it only gets worse - Indigo Rose (in the guise of AMS) has been the only thing to come between me and my wife in 40 years

                    Comment

                    • rexzooly
                      No longer a forum member
                      • Jul 2007
                      • 1512

                      #11
                      ya simply keep to it you seem to have a nice project get some Open source images to make it look sexy and there you go i think you will have it in th bag always look around the site at example that you might be able to intogreat into your project

                      any ya AMS dose that once you start you might as well get married to the software lol





                      rex

                      Comment


                      • #12
                        Okay V5

                        Well I threw together a quick interface artwork and here is what I have up till now.

                        Countdown or Timer code still missing.

                        I have the alarm working but no file load and no AM/PM.
                        Probably would be good to put a little more code with the data input box for errors and such but its working for now..

                        Seems that when it changes pages the timer stops on that page.... I put everything on seperate pages hoping that they would all run on different timers but they dont seem to be doing that at all... Stumped on that one for sure!!! Would be great to be able to start a stopwatch then go back to the Time page or some other function, then back to check on the stopwatch...
                        Attached Files

                        Comment

                        • longedge
                          Indigo Rose Customer
                          • Aug 2003
                          • 2498

                          #13
                          Originally posted by mrdmx1024 View Post
                          I put everything on seperate pages
                          Just on this one point - I moved away from using separate pages routinely quite a long time ago.

                          Most of the page objects can be re-used by loading content dynamically and when I can't do that I hide and show objects as appropriate.

                          Having said that, we all find what's best for our own purposes, that's just my preference. It suits me because my projects tend to be 'content based' usually videos which lend themselves particularly well to my method.

                          Comment


                          • #14
                            Pages

                            Well I had it all on one page... I was hiding what needed to be hid and all that but I found that when I would run another clock function it would stop the other. So I thought the pages would run seperate of each other but that doesnt work either....

                            Comment

                            • longedge
                              Indigo Rose Customer
                              • Aug 2003
                              • 2498

                              #15
                              Sorry I was wandering off topic

                              I was talking in general terms and not specifically about your project.

                              I think that for most of us, certainly for me, it's true to say that it takes some time to appreciate the fact that objects can be re-used and that you can sometimes reduce a project from dozens of pages to just two or three by doing it.

                              Comment

                              Working...
                              X