Announcement

Collapse
No announcement yet.

How to use timers

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

    #16
    But having a more accurate timer value doesn't help you actually wait.

    In a script you can use hs.WaitSecs(delay) and it does accept a real number even though the documentation says it should be integer. So hs.WaitSecs(0.25) will wait for 1/4 second.

    Comment


      #17
      Thanks everyone, your comments are much appreciated.

      Originally posted by pseudocode View Post
      But having a more accurate timer value doesn't help you actually wait.

      In a script you can use hs.WaitSecs(delay) and it does accept a real number even though the documentation says it should be integer. So hs.WaitSecs(0.25) will wait for 1/4 second.
      Would a script written in notepad be as simple as this?

      sub main()
      hs.WaitSecs(2.25)
      end sub


      Comment


        #18
        You can add an action like this in an event: Just change it to your 2.25 seconds.
        Click image for larger version

Name:	image.png
Views:	80
Size:	24.9 KB
ID:	1612092

        Comment


          #19
          Originally posted by Kevb View Post
          You can add an action like this in an event: Just change it to your 2.25 seconds.
          Click image for larger version

Name:	image.png
Views:	80
Size:	24.9 KB
ID:	1612092
          That looks easy enough! Thank you Kevb and pseudocode.

          This will allow me to fine tune my blinds and projector screen with blanking for various aspect ratios. This is a big deal for me!

          Thank you all again for your help. You have made my day!


          Best Regards,
          Keith

          Comment


            #20
            Originally posted by Kevb View Post
            You can add an action like this in an event: Just change it to your 2.25 seconds.
            Click image for larger version

Name:	image.png
Views:	80
Size:	24.9 KB
ID:	1612092
            That by itself likely won’t delay subsequent actions. I *think* if you select “wait for script to finish” it will delay further actions.

            HS4 Pro, 4.2.19.16 Windows 10 pro, Supermicro LP Xeon

            Comment


              #21
              Thank you Randy, I'll give that a try as well.

              Comment

              Working...
              X