Sign in to follow this  
Followers 0
groovel

My If Else Never Reaches Else

2 posts in this topic

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?

Share this post


Link to post
Share on other sites



thanks

Share this post


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
Sign in to follow this  
Followers 0