WinAutomation - windows automation software with macro recorder
      6 replies [Last post]
      theartdude
      theartdude's picture
      User offline. Last seen 4 weeks 2 days ago. Offline
      Joined: 07/30/2010
      Posts: 5

      Hello, i'm a new winautomation user,

      I tried to find this topic but didn'tsee any search feature on the forums.

      I'm trying to insert a time delay (for example: 90 seconds) insert that delay between each mouse clicks. How do I write that code?

      Any help would be helpful. Thanks!

       

      theartdude
      theartdude's picture
      User offline. Last seen 4 weeks 2 days ago. Offline
      Joined: 07/30/2010
      Posts: 5
      Re: Insert a Time Delay

      By the way, I'm not trying to insert Time Delay between key strokes, just a regular time delay where the mouse don't move for x amount of time between clicks. Thank you!

      hjaeger
      hjaeger's picture
      User offline. Last seen 1 week 1 day ago. Offline
      Joined: 07/01/2010
      Posts: 8
      Re: Insert a Time Delay

      Have you tried using the "Wait" action? It allows you to specify a number of seconds where WinAutomation simply waits before moving to the next action in the script

      In terms of "not moving the mouse" you can use the "Block Input" action (you'll find it in the Mouse & Keyboard folder) to prevent manual moving of the mouse, e.g. moving the mouse by mistake

      Cheers,

      Henrik

      theartdude
      theartdude's picture
      User offline. Last seen 4 weeks 2 days ago. Offline
      Joined: 07/30/2010
      Posts: 5
      Re: Insert a Time Delay

      I'm currently using the macro recorder: After recording a session with the macro recorder, I would like to manually edit/tweak the wait value. Where can I do that?

      D.M.Altizer
      User offline. Last seen 2 weeks 4 hours ago. Offline
      Joined: 01/12/2010
      Posts: 197
      Re: Insert a Time Delay

      When you stop the recording and press the "Convert recording to actions" button, you will notice that for every mouse move/click and every keystroke that you pressed there is a corresponding action in the job designer. So, if for example you wrote the text:

      hello there

      and you wanted to add a delay between the hello and the there, you need to look for a "Send Keys" action in your job that will contain the hello there text. Then, you can just add something like that between them:

      hello {Delay 90000} there

      Remember that 90000 is in milliseconds, so the above will basically pause the job for 90 seconds between the word hello and the word there. You can also split the text in 2 different Send Keys actions and add a "Wait" action between them (the time is counted in seconds in the Wait action though).

      P.S: for searching there is a box at the right of the page.

      __________________

      ==Dedicated Automation Solutions==

      __________________

      ==Dedicated Automation Solutions==

      theartdude
      theartdude's picture
      User offline. Last seen 4 weeks 2 days ago. Offline
      Joined: 07/30/2010
      Posts: 5
      Re: Insert a Time Delay

      Thank you so much for your help! =)

      hjaeger
      hjaeger's picture
      User offline. Last seen 1 week 1 day ago. Offline
      Joined: 07/01/2010
      Posts: 8
      Re: Insert a Time Delay

      Thanks a million - inserting a {Delay 90000} is so much easier than always having to split into multiple actions

      Cheers,

      Henrik