Jump to content
Sign in to follow this  
Arclite86

problems with reading multiple lists

Recommended Posts

Arclite86

I got 5 list's

$link = GUICtrlRead($List1)

        $oIE = _IECreate("https://twitter.com/"&$link,1,0)   ;linkkk

$oInput2s = _IETagNameGetCollection($oIE, "a")
For $oInput2 In $oInput2s
    If $oInput2.className() = "js-nav" Then
        If StringInStr($oInput2.innerHTML(), 'Volgend') Then
            ConsoleWrite(_StringBetween($oInput2.innerHTML(),'>','<')[0] & @CRLF)
            ExitLoop
        EndIf
    EndIf
Next

$numbvolgers = (_StringBetween($oInput2.innerHTML(),'>','<')[0] & @CRLF)

GUICtrlSetData($List2,""& $numbvolgers )
if @error then MsgBox(0, "", "gevonden" )



$oInput1s = _IETagNameGetCollection($oIE, "a")
For $oInput1 In $oInput1s
    If $oInput1.className() = "js-nav" Then
        If StringInStr($oInput1.innerHTML(), 'Volgers') Then
            ConsoleWrite(_StringBetween($oInput1.innerHTML(),'>','<')[0] & @CRLF)
            ExitLoop
        EndIf
    EndIf
Next

$numbvolgers = (_StringBetween($oInput1.innerHTML(),'>','<')[0] & @CRLF)

GUICtrlSetData($List3,""& $numbvolgers )
if @error then MsgBox(0, "", "gevonden" )

(above)shows number of user read from list1 and past them in list2 and list3

$link2 = GUICtrlRead($List4)

        $oIE2 = _IECreate("https://twitter.com/"&$link2,1,0)  

$oInput3s = _IETagNameGetCollection($oIE2, "a")
For $oInput3 In $oInput3s
    If $oInput3.className() = "js-nav" Then
        If StringInStr($oInput3.innerHTML(), 'Volgers') Then
            ConsoleWrite(_StringBetween($oInput3.innerHTML(),'>','<')[0] & @CRLF)
            ExitLoop
        EndIf
    EndIf
Next

$numbvolgers = (_StringBetween($oInput3.innerHTML(),'>','<')[0] & @CRLF)

GUICtrlSetData($List5,""& $numbvolgers )
if @error then MsgBox(0, "", "gevonden" ) 

(above)Reads from list 4 ( other username) and paste in list 5, but the problem is that it shows the numbers of  the user in list 1 it doesn't read from list 4 but from list 1 even I told it to read $link2 (other username) I dont understands it anymore..

Share this post


Link to post
Share on other sites
Arclite86

I checked it agian with the same code, and now it is working while I chanced nothing :wacko:

was autoit it confused or something?

Share this post


Link to post
Share on other sites
jchd

THC probably, but the effects don't last much.


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

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  

×