Home AMX User Forum AMXForums Archive Threads AMX Applications and Solutions

Countup timer

A client has asked for a timer to show how long he has been recording for on a DVD.
I'm assuming a timeline is the correct way to go, starting when the record button is pressed and killing the timeline when the stop button is pressed.
I'm new to timelines and was wondering if anyone has done this sort of thing and has any tips.
thanks in advance

Barry

Comments

  • You could use timeline_set or timeline_get (1/100 sec) or the older get_timer and set_timer (1/10 Sec). If you use the older set_timer. there is less coding involved and its already an existing background timer. No timelines would need to be created.
  • VLCNCRZRVLCNCRZR Posts: 216
    Presenter Timer

    Here is a little subroutine that I use for a certain client who wants each
    presenter to progressively know how long they have been speaking.

    Maybe you can modify it to fit your need.


    //PRESENTER TIMER FUNCTION
    {
    TIMER_DISPLAY = (GET_TIMER /600)
    WAIT(600)
    SEND_COMMAND TP,"'^TXT-9,1&2,',ITOA(TIMER_DISPLAY)"
    }
    PUSH[TP,10] //RESET TIMER
    {
    SET_TIMER (0)
    SEND_COMMAND TP,"'^TXT-9,1&2,','0'"
    TO[TP,BUTTON.INPUT.CHANNEL]
    }
  • jjamesjjames Posts: 2,908
    What's all this GET_TIMER, SET_TIMER stuff? Is this new?!?
  • VLCNCRZRVLCNCRZR Posts: 216
    These are old AXCESS keywords that I couldnt bear to part with.

    Easy and accurate!
  • You could find the commands in NS2 under Help NS Keywords,
  • jjamesjjames Posts: 2,908
    VLCNCRZR wrote: »
    These are old AXCESS keywords that I couldnt bear to part with.

    Ahh - the reason why I never heard of them - I've never programmed AXCESS!

    Just looked them up though . . . they look interesting.
  • thanks

    Hi all,

    thanks for that.
    Must admit I'd forgotten about get_timer etc. Years since I used them.

    Barry
  • DHawthorneDHawthorne Posts: 4,584
    jjames wrote: »
    What's all this GET_TIMER, SET_TIMER stuff? Is this new?!?

    Quite old, actually. I've never used them, though our old Axcent programmer used them a lot, so I gained familiarity when I took over his code. The one problem is that it is a single global timer; you can't have multiple timers going with those keywords. Or, let me amend that, you can't that I am aware of :).
Sign In or Register to comment.