Jump to content

Please help with _IELoadWaitTimeout


Recommended Posts

I basically know what it does. But my problem is that idk how to insert it to my script...

#include <IE.au3>  
$Account = IniRead("Settings.ini", "Settings", "Kasutaja", "NotFound")  
$Password = IniRead("Settings.ini", "Settings", "Parool", "NotFound") 
HotKeySet("{ESC}", "Terminate") 
$o_IE = _IECreate ()
_IENavigate($o_IE, "http://www.rate.ee/show.php") 

Sleep(3000)  
Send($Account)
Send("{TAB}")
Send($Password)  
Send("{TAB}") 
Send("{Enter}")  
Sleep(4000) 
_IELoadWait($o_IE)
While 1  
If WinExists("504 Gateway Timeout -") Then 
Send("{F5}")  
_IELoadWait($o_IE)  
Sleep(2000) 
EndIf
        
If WinExists("504 Gateway Timeout -") Then 
Send("{F5}")  
_IELoadWait($o_IE)  
Sleep(2000) 
EndIf

$oForm = _IEFormGetObjByIndex($o_IE, 0)
$oViis = _IEFormElementGetObjByName($oForm, "rating", 5) 
$oViis.click   
_IELoadWait($o_IE) 

If WinExists("504 Gateway Timeout -") Then 
Send("{F5}")  
_IELoadWait($o_IE)  
Sleep(2000) 
EndIf

Sleep(1000)
$oForm1 = _IEFormGetObjByIndex($o_IE, 0)
$oNeli = _IEFormElementGetObjByName($oForm1, "rating", 4)  
$oNeli.click   
_IELoadWait($o_IE) 

If WinExists("504 Gateway Timeout -") Then 
Send("{F5}")  
_IELoadWait($o_IE)  
Sleep(2000) 
EndIf

Sleep(1000)  
$oForm2 = _IEFormGetObjByIndex($o_IE, 0)
$oKolm = _IEFormElementGetObjByName($oForm2, "rating", 3)  
$oKolm.click   
_IELoadWait($o_IE) 
 
Sleep(1000) 
WEnd 
Func Terminate () 
    Exit 0 
EndFunc

this is my script.

Can you help please :P:nuke:

Link to comment
Share on other sites

The Help File shows this example:

; *******************************************************

; Example 1 - Obtain current timeout value

; *******************************************************

;

#include <IE.au3>

$iCurrentTimeout = _IELoadWaitTimeout ()

; *******************************************************

; Example 2 - Set timeout to 1 minute (60000 milliseconds)

; *******************************************************

;

#include <IE.au3>

_IELoadWaitTimeout (60000)

Read your "autoit help file" for further explanation :P

I basically know what it does. But my problem is that idk how to insert it to my script...

#include <IE.au3>  
$Account = IniRead("Settings.ini", "Settings", "Kasutaja", "NotFound")  
$Password = IniRead("Settings.ini", "Settings", "Parool", "NotFound") 
HotKeySet("{ESC}", "Terminate") 
$o_IE = _IECreate ()
_IENavigate($o_IE, "http://www.rate.ee/show.php") 

Sleep(3000)  
Send($Account)
Send("{TAB}")
Send($Password)  
Send("{TAB}") 
Send("{Enter}")  
Sleep(4000) 
_IELoadWait($o_IE)
While 1  
If WinExists("504 Gateway Timeout -") Then 
Send("{F5}")  
_IELoadWait($o_IE)  
Sleep(2000) 
EndIf
        
If WinExists("504 Gateway Timeout -") Then 
Send("{F5}")  
_IELoadWait($o_IE)  
Sleep(2000) 
EndIf

$oForm = _IEFormGetObjByIndex($o_IE, 0)
$oViis = _IEFormElementGetObjByName($oForm, "rating", 5) 
$oViis.click   
_IELoadWait($o_IE) 

If WinExists("504 Gateway Timeout -") Then 
Send("{F5}")  
_IELoadWait($o_IE)  
Sleep(2000) 
EndIf

Sleep(1000)
$oForm1 = _IEFormGetObjByIndex($o_IE, 0)
$oNeli = _IEFormElementGetObjByName($oForm1, "rating", 4)  
$oNeli.click   
_IELoadWait($o_IE) 

If WinExists("504 Gateway Timeout -") Then 
Send("{F5}")  
_IELoadWait($o_IE)  
Sleep(2000) 
EndIf

Sleep(1000)  
$oForm2 = _IEFormGetObjByIndex($o_IE, 0)
$oKolm = _IEFormElementGetObjByName($oForm2, "rating", 3)  
$oKolm.click   
_IELoadWait($o_IE) 
 
Sleep(1000) 
WEnd 
Func Terminate () 
    Exit 0 
EndFunc

this is my script.

Can you help please :nuke::)

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