12 Replies Latest reply: Jan 16, 2017 3:45 PM by Jose Taveras RSS

    JScript: WaitForIdle or equivalent

    Riccardo Zenere

      Hi everyone,

      I'm looking for a way to make the WaitForIdle (or equivalent function, even a custom one) work on a JScript macro.

      What I'm trying to achieve is to pause the application (not make it "sleep", as I've already done with custom code) in order to select a value on a field and give time to the application to "update the layout" with the selection before taking a screenshot.

      Currently with the lone sleep the screenshot is taken before I can see the layout update.



      Do you have any hint about how to do this in JScript?