Jump to content

Nested Do Until not working


Recommended Posts

$start = TimerStart()
Do

if winwaitactive("Call Logging -", "", 60)Then
    send("!go")
    if winwaitactive("Open Call Group", "View", 10)Then
    Send("!g")
    Send("{END}")
    Send("!o")
    Do
  sleep(100)
  $Cursor = MouseGetCursor()
    Until $Cursor = 2

;=============Test 2============
    if winwaitactive("Call Logging -", "", 60)Then
    send("!go")
    if winwaitactive("Open Call Group", "View", 10)Then
    Send("!g")
    Send("{END}")
    Send("{UP}")
    Send("!o")
    do
  sleep(100)
  $Cursor = MouseGetCursor()
    until $Cursor = 2

endif
Until TimerStop($start) > 3600000

OK, I finally got the timer to work but once I stick the second Do Until in the script it won't run. I get the error Until Statement with no matching Do Statement. I have tried this many different ways and I can't figure this out.

I want to loop this for an hour.

Any Ideas

Thanks,

Mike

Edit: Never Mind. I just figured it out. I was missing an Endif.

:D

Edited by MikeOsdx
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...