Jump to content

Why Doesn't this work? Loop Within a Loop


Recommended Posts

$i = 0

While 1

Do $i = 1

Send("{F2}")

Sleep(250)

Send("{F1}")

Sleep(1500)

Send("{F6}")

Sleep(6000)

Send("{F3}")

Sleep(650)

Send("{F3}")

Sleep(650)

    $i = $i + 1

Until $i = 17

Send("{F6}")

Sleep(1500)

Send("{F7}")

Sleep(1500)

WEnd

trying to get the Do loop to run 17 times than have the other part run .. than it go bakc and do the Do loop 17 etc etc etc

any1 have any ideas?

Link to post
Share on other sites

Here you go.

While 1
   For $i = 1 To 17
      Send("{F2}")
      Sleep(250)
      Send("{F1}")
      Sleep(1500)
      Send("{F6}")
      Sleep(6000)
      Send("{F3}")
      Sleep(650)
      Send("{F3}")
      Sleep(650)
   Next
   Send("{F6}")
   Sleep(1500)
   Send("{F7}")
   Sleep(1500)
WEnd
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...