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

  • kbeattyAMXkbeattyAMX Junior Member Posts: 358
    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 Senior member 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 Just another dude Posts: 2,905
    What's all this GET_TIMER, SET_TIMER stuff? Is this new?!?
  • VLCNCRZRVLCNCRZR Senior member Posts: 216
    These are old AXCESS keywords that I couldnt bear to part with.

    Easy and accurate!
  • kbeattyAMXkbeattyAMX Junior Member Posts: 358
    You could find the commands in NS2 under Help NS Keywords,
  • jjamesjjames Just another dude Posts: 2,905
    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.
  • jbhildijbhildi Junior Member Posts: 9
    thanks

    Hi all,

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

    Barry
  • DHawthorneDHawthorne Old Timer 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.