TeTube Posted September 27, 2011 Posted September 27, 2011 Here is the following code: expandcollapse popup;- --------------------------------------------------------------------------- ;- @Function: _profileselect ;- @Discription: Selects the profiles. ;- Func _profileselect() ;- Traytip counter variable. Local $j = 0 TrayTip("Selection", "Started", 3) ;- Selects all usernames that are stored in aGlobal. For $eName In $aGlobal ;- Traytip counter $j += 1 ;- Selects userprofile n from the global array. _IENavigate($oIE, $sURL & "/user/" & $eName, 0) ;- Check if URL is actually properly loaded. If not after 3 secs, ;- continue with next user in the array. Local $i = 0 While Not StringInStr($eName, StringTrimLeft(_IEPropertyGet($oIE, "locationurl"), 25)) And $i < 100 Sleep(20) $i += 1 WEnd ;- Traytip output after 10 profiles have been selected. If Mod($j, 10) = 0 Then TrayTip("Selection", "Current selection: " & $j, 3) EndIf Next ;- Resets counter variables for multiple runs with different ages. Local $j = 0 Local $del = 0 TrayTip("Clearing Array:", "Started!", 3) ;- Cleans the global array. For $aEntry In $aGlobal _ArrayDelete($aGlobal, $aEntry) Next TrayTip("Clearing Array:", "Done!", 3) TrayTip("Selection:", "Done!", 3) EndFunc I get this error:C:\Users\TeTuBe\Documents\My Dropbox\Highskill\Außer Uni Projekte\_BotSection\Jappy Bot\profileselect1.au3 (294) : ==> Error parsing function call.:While Not StringInStr($eName, StringTrimLeft(_IEPropertyGet($oIE,While Not StringInStr($eName, StringTrimLeft(_IEPropertyGet($oIE^ ERROR If anyone has a clue what could be wrong, lemme know :=)
Ramzes Posted September 27, 2011 Posted September 27, 2011 (edited) You should use: While Not StringInStr($eName, StringTrimLeft(_IEPropertyGet($oIE,"locationurl"), 25)) And $i < 100 Or if you want pass to new line: While Not StringInStr($eName, StringTrimLeft(_IEPropertyGet($oIE, _ "locationurl"), 25)) And $i < 100 Edited September 27, 2011 by Ramzes Sorry for my bad English but nobody is perfect. [font=arial, helvetica, sans-serif]Ramzes[/font]
GEOSoft Posted September 27, 2011 Posted September 27, 2011 While Not StringInStr($eName, StringTrimLeft(_IEPropertyGet($oIE, _ "locationurl"), 25)) And $i < 100 Note the space between "," and "_". George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!"
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