Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] tracktime.clp

Expand Messages
  • Don - HtmlFixIt.com
    ... I ll be honest Dave, I have no idea what you are doing and so cannot quite figure it out. It appears you are doing something with times on a cd track or
    Message 1 of 3 , Jun 24, 2007
    • 0 Attachment
      Dave wrote:
      > Hi
      > the clip below is a tracktime clip, bits of it have been used from other
      > clips hope the people do not mind ,the problem with the clip is shown at the
      > end ,how do I get two places when the mod thinks there is one ,other words I
      > would like always two places.
      > H="TRACKTIME"


      I'll be honest Dave, I have no idea what you are doing and so cannot
      quite figure it out. It appears you are doing something with times on a
      cd track or something for music? Anyway it makes no sense to open the
      calculator to do your math. Do it right in notetab with the
      ^$Calc(1+1)$ function. This is especially important as Vista will
      eventually apparently obsolete clips with keyboard commands such as you
      are using here.

      As to making things two digit, I have a line I use often. If I can
      isolate the number I want and check to see if one digit long, I just add
      a preceeding 0.

      So I think it might be make this:
      ^!Set %A%=^$StrCopyRight("^$Calc((^%RESU%-3600*^%RESU%DIV3600)div60)$";2)$
      ^!Set %A1%=^$StrCopyRight("^$Calc(^%RESU% MOD 60)$";2)$
      ^!Replace "00:00:00" >> "^%A%:^%A1%:00" S

      Into this:
      ^!Set %A%=^$StrCopyRight("^$Calc((^%RESU%-3600*^%RESU%DIV3600)div60)$";2)$
      ^!Set %A1%=^$StrCopyRight("^$Calc(^%RESU% MOD 60)$";2)$
      ^!If ^$StrSize("^%A%")$=1 ^!Set %A%=0^%A%
      ^!If ^$StrSize("^%A1%")$=1 ^!Set %A1%=0^%A1%
      ^!Replace "00:00:00" >> "^%A%:^%A1%:00" S
    Your message has been successfully submitted and would be delivered to recipients shortly.