Forum Discussion

ringraham's avatar
ringraham
Contributor
9 years ago
Solved

How to continue script until polling event (via timer) determines script should stop?

I would like to have my script continue running until a given event has occurred. I have a timer event that polls every 10 seconds. When it finds that a given button has been reenabled, I would like ...
  • leandroaraujoso's avatar
    leandroaraujoso
    9 years ago

    I think I got this time. Please, try this:

     

    while ( ! myRewindButton.Enabled || TimeOutNotReached )

    {

      

    }

     

    Let me know if that helps.

     

    Regards,

     

    Leandro de Araújo Souza