iverson_est Posted August 16, 2006 Share Posted August 16, 2006 I basically know what it does. But my problem is that idk how to insert it to my script... expandcollapse popup#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 Link to comment Share on other sites More sharing options...
vim Posted August 16, 2006 Share Posted August 16, 2006 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 I basically know what it does. But my problem is that idk how to insert it to my script... expandcollapse popup#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 Link to comment Share on other sites More sharing options...
iverson_est Posted August 16, 2006 Author Share Posted August 16, 2006 ayea, i wasn't using the newest autoit, that's why i didn't find anything i dl'd the new one and found the place, thanks for your tip Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now