Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 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

Attachments (0)

Change History (2)

comment:1 by Valik, 14 years ago

Resolution: No Bug
Status: newclosed

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

comment:2 by TicketCleanup, 14 years ago

Version: Other

Automatic ticket cleanup.

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.