HI guys, i run a script from SCITE with F5 and manipulate some elements on a complex web page. The core of the script is :
For $i=0 to 5 step 1
Refresh()
Sleep(3000)
Loading()
GetActiveTicket()
Sleep(3000)
Loading()
SaveChanges()
Sleep(1000)
Loading()
ConfirmChanges()
Sleep(3000)
Loading()
Next
Func Loading()
$j=0
ConsoleWrite("Loading Enter"&@CRLF)
For $i=0 to 10 step 1
$oBut3 = _IETagNameGetCollection($oIE, "div")
For $odiv in $oBut3
IF $odiv.innertext = "Loading..." Then
Sleep(2000)
$j+=1
EndIf
Next
Next
If $j = 10 Then _IEAction($oIE,"refresh")
WaitIE($oIE,4)
ConsoleWrite("Loading Exit"&@CRLF)
EndFunc
The problem is that it crushes after the first pass of the loop with :
!>11:54:42 AutoIt3.exe ended.rc:-1073741819
+>11:54:42 AutoIt3Wrapper Finished.
>Exit code: 3221225477 Time: 78.46
How can i fix that ?