Jump to content
Macro Express Forums

archdude

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by archdude

  1. Thanks for the suggestions guys.

     

    I was actually able to come up with the script to do what I wanted. My looping event was more than 1 second long so I could not get it acurate down to the second. This was fine with me, minute accuracy was no problem.

     

    Here's what I came up with in case anyone's interested.

     

    Please keep in mind, I'm not an advanced user, so I'm quite sure I've placed un needed steps in it, but it does what I need it to do.

     

    Variables:

    N1 - Current hour

    N2 - Hours you need this to run (ex 2 would be to run for 2 hours)

    N3 - Current hour inside the loop

     

    N4 - Current Minute

    N5 - Minutes you need this to run (ex 2 would be for 2 minutes)

    N6 - Current minute inside the loop

     

     

    Start of script:

     

    Variable Set Integer %N1% from Current Hour

    Variable Modify Integer %N2% = %N1% + (Hours that you need, must be a #)

    If Variable %N2% > 23

    Varibale Modify Integer %N2% = %N2% - 24 (adjustment for 24 hour clock)

    End If

     

    Variable Set Integer %N4% from Current Minute

    Variable Modify Integer %N5% = %N4% + (Minutes that you need, must be a #)

    If Variable %N5% > 59

    Variable Modify Integer %N5% = %N5% - 60 (adjustment for 60 minute clock)

    End If

     

    Repeat Until %N5% = %N6%

    Variable Set Integer %N6% from Current Minute (repeats for amount of minutes)

    Repeat Until %N2% = %N3%

    Variable Set Integer %N3% from Current Hour (repeats amount of hours)

     

    This is where you put the things you need to be repeated

     

    Repeat End

    Repeat End

     

     

    That's it, I hope this helps anyone that has a similar problem like my own.

×
×
  • Create New...