Jump to content

My If Else Never Reaches Else


Recommended Posts

If WinWaitActive("'s Page", "Done") Then
  $rand = 0  
  $rand = Int(Random(2, 5))  
  Send("^f")
  Sleep(500)
  Send("blah")
  Sleep(500)
  Send("{ENTER 5}")
  Sleep(500)
  Send("{ESC 2}")
  Sleep(500)
  Send("{TAB " & $rand & "}")
  Sleep(500)
  Send("{ENTER}")

 Else
  WinKill("Microsoft Interent Explorer", "")
  Run('C:\Program Files\Internet Explorer\IEXPLORE.EXE')

 EndIf

It never seems to make it to the Else, why not?

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...