Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#2158 closed Bug (No Bug)

While Wend Problem

Reported by: anonymous Owned by:
Milestone: Component: AutoIt
Version: Other Severity: None
Keywords: Cc:

Description

I have a simple adfly program that i want to loop but the while statement says that there is no matching wend. i have looked through the form multiple times but nothing looks as if it interferes. maybe you can find it.

While
;sleep before closing
$var1 = 10000
;make a random number between 1 and 4
$LowerLimit = 1
$UpperLimit = 4
$RandomNumber = Random($LowerLimit,$UpperLimit,1)

IF $RandomNumber = 1 Then

$adlink = "http://adf.ly/6CwHP"
Elseif $RandomNumber = 2 Then
$adlink = "http://adf.ly/54lV4"
Elseif $RandomNumber = 3 Then
$adlink = "http://adf.ly/5AR4x"
Elseif $RandomNumber = 4 Then
$adlink = "http://adf.ly/6Cdpl"

Endif

#include <IE.au3>
$oIE = _IECreate($adlink)
Sleep(2000)
$oObject = _IEGetObjById($oIE, "countdown")
Do

$countdown = _IEPropertyGet($oObject, "innertext")

Until $countdown = 0
Sleep(1000)
$oObject = _IEGetObjById($oIE, "skip_button")
_IEAction($oObject, "click")

Sleep ($var1)
ProcessClose("iexplore.exe")
Wend

Change History (2)

comment:1 Changed 13 years ago by Valik

  • Resolution set to No Bug
  • Status changed from new to closed

Problem is simple and obvious. Should have been posted on the forum. This is not a support forum.

comment:2 Changed 13 years ago by TicketCleanup

  • Version set to Other

Automatic ticket cleanup.

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.