Sign in to follow this  
Followers 0
iverson_est

Please help with _IELoadWaitTimeout

3 posts in this topic

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:

Share this post


Link to post
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::)

Share this post


Link to post
Share on other sites

ayea, i wasn't using the newest autoit, that's why i didn't find anything :P i dl'd the new one and found the place, thanks for your tip :nuke:

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