Jump to content

Use _IENavigate With An Variable


Arclite86
 Share

Recommended Posts

I Want to do this:

$link = GUICtrlRead($List1)
_IENavigate("https://twitter.com/" & $link) 

If I use _IECreate it does work

Instead of closing and starting a browser it will just Navigate to another page that will make thing much faster

But it give me an error: Error: _IENavigate() called with wrong number of arg.

Does this mean its unpossible  for _IENavigate()?

 

Link to comment
Share on other sites

  • Moderators

You're not referencing an IE object, which is why you get the error. I'm assuming you're not referencing it because the script doesn't create the initial IE window? Maybe try

$oIE = ObjGet("", "InternetExplorer.Application")

to grab the window (I'm on my phone so untested)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

You're not referencing an IE object, which is why you get the error. I'm assuming you're not referencing it because the script doesn't create the initial IE window? Maybe try

$oIE = ObjGet("", "InternetExplorer.Application")

to grab the window (I'm on my phone so untested)

I have tried it but it didnt work but i probably know why

this is my script im using:

Func function1()

    $link = GUICtrlRead($List1)
$oIE = ObjGet("", "InternetExplorer.Application")

    $oIe = _IENavigate("https://twitter.com/" & $link)
    _IENavigate($oIe, "https://twitter.com/" & $link)

    _IELoadWait($oIe)

;rest of the codes.....................
;codes.....................
;codes.....................
;codes.....................

Endfunc


Case $button

 _IECreate("https://twitter.com/")


            For $idx = 0 To _GUICtrlListBox_GetCount($List1) - 1
                Switch $idx
                    Case 
                        function1()
                    EndSwitch
            Next
 

So It probably could not find the _IeCreate because the Func function1() was before the case $button

but how can I solve this?...

Edited by Arclite86
Link to comment
Share on other sites

  • Moderators

Can you post your entire code, please? What you have is pretty fragmented and difficult to tell the expected flow of your script. You should be able to declare your _IECreate variable before you enter the function, thus making it visible.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

It doesn't seem like that is all the code, but here is this

Local $oIE = _IECreate("https://twitter.com/")

For $idx = 0 To _GUICtrlListBox_GetCount($List1) - 1
    function1()
Next

Func function1()

    Local $link = GUICtrlRead($List1)
    Local $oIEnav = _IENavigate($oIE, "https://twitter.com/" & $link)
    _IELoadWait($oIEnav)

    ;rest of the codes.....................
    ;codes.....................
    ;codes.....................
    ;codes.....................

EndFunc   ;==>function1
Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

 

It doesn't seem like that is all the code, but here is this

Local $oIE = _IECreate("https://twitter.com/")

For $idx = 0 To _GUICtrlListBox_GetCount($List1) - 1
    function1()
Next

Func function1()

    Local $link = GUICtrlRead($List1)
    Local $oIEnav = _IENavigate($oIE, "https://twitter.com/" & $link)
    _IELoadWait($oIEnav)

    ;rest of the codes.....................
    ;codes.....................
    ;codes.....................
    ;codes.....................

EndFunc   ;==>function1

This will work but now it automatically start up a browser when I run the script and I only want the $button to activate this 

Link to comment
Share on other sites

 

It doesn't seem like that is all the code, but here is this

Case $button

    Local $oIE = _IECreate("https://twitter.com/")

    For $idx = 0 To _GUICtrlListBox_GetCount($List1) - 1
        function1()
    Next

    Func function1()

        Local $link = GUICtrlRead($List1)
        Local $oIEnav = _IENavigate($oIE, "https://twitter.com/" & $link)
        _IELoadWait($oIEnav)

        ;rest of the codes.....................
        ;codes.....................
        ;codes.....................
        ;codes.....................

    EndFunc   ;==>function1

 

This will work but now it automatically start up a browser when I run the script and I only want the $button to activate this 

 

Give that a try now, I included the Case $button statement you had that I took out, my apologies.

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

Give that a try now, I included the Case $button statement you had that I took out, my apologies.

If I place the case $button above the function:

Case $button

 _IECreate("https://twitter.com/")

            Call("save")

            For $idx = 0 To _GUICtrlListBox_GetCount($List1) - 1
                Switch $idx
                    Case 0 To 150
                        Function1()
                EndSwitch
            Next

            Local $count = _GUICtrlListBox_GetCount($List2)
            Local $item, $total = 0
            For $index = 0 To $count - 1
                $item = _GUICtrlListBox_GetText($List2, $index)
                $total += Number(StringReplace($item, ".", ""))
            Next
            MsgBox(0, "", $total)
            GUICtrlSetData($Input3, $total) 

I get an error: syntax error

and this line:

Local $oIEnav = _IENavigate($oIE, "https://twitter.com/" & $link)

gives Waring: $oIE: possibly used before declaration

if I place the function after the $case (in the switch) than It doesnt respond.

This is the full function1()

Func function1()

    Local $link = GUICtrlRead($List1)
    Local $oIEnav = _IENavigate($oIE, "https://twitter.com/" & $link)
    _IELoadWait($oIEnav)

    $oIe = _IEAttach("Twitter")

    If @error = $_IEStatus_NoMatch Then
        ConsoleWrite("tab niet gevonden" & @CRLF)
        Exit
    EndIf

    $oLinks = _IELinkGetCollection($oIe)

    If @error = $_IEStatus_Success Then
        $linkCnt = @extended
        ConsoleWrite("Link count = " & $linkCnt & @CRLF)

        For $oLink In $oLinks
            If $oLink.className = 'ProfileNav-stat ProfileNav-stat--link u-borderUserColor u-textCenter js-tooltip js-openSignupDialog js-nonNavigable u-textUserColor' Then
                If $oLink.getAttribute('data-nav') = 'followers' Then
;~                                          $4er =  _GUICtrlListBox_GetCurSel($List2)
;~  _GUICtrlListBox_ReplaceString($List2, $4er, ""& $oLink.innerText)
;~                 ConsoleWrite('Followers = ' & $oLink.innerText & @CRLF)

                    $4er = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $4er, "" & StringReplace($oLink.innerText, "Volgers", ""))

                    _GUICtrlListBox_AddString($List2, "" & $oLink.innerText)
                    $4GG = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $4GG, "" & $oLink.innerText)


                    $text = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $text, "" & $oLink.innerText)

                EndIf
            EndIf
        Next
    EndIf




    $oLinks2 = _IELinkGetCollection($oIe)
    For $oLink2 In $oLinks2
        If $oLink2.className = 'ProfileNav-stat ProfileNav-stat--link u-borderUserColor u-textCenter js-tooltip js-openSignupDialog js-nonNavigable u-textUserColor' Then
            If $oLink2.getAttribute('data-nav') = 'following' Then
                ConsoleWrite('following = ' & $oLink2.innerText & @CRLF)
                $4er = _GUICtrlListBox_GetCurSel($List3)

                ;_GUICtrlListBox_AddString ($list3,""& $oLink2.innerText)
                ;                           $4er =  _GUICtrlListBox_GetCurSel($List3)
                ;_GUICtrlListBox_ReplaceString($List3, $4er, ""& $oLink2.innerText)


                $text = _GUICtrlListBox_GetCurSel($List3)
                _GUICtrlListBox_ReplaceString($List3, $text, "" & StringReplace($oLink2.innerText, "Volgend", ""))


            EndIf
        EndIf
    Next



    $iIndex += 1
    If $iIndex = _GUICtrlListBox_GetCount($List1) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List1, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List2) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List2, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List3) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List3, $iIndex)


    If $iIndex = _GUICtrlListBox_GetCount($List4) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List4, $iIndex)




    If $iIndex = _GUICtrlListBox_GetCount($List5) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List5, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List9) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List9, $iIndex)
    _IEQuit($oIe)





EndFunc

I dont understand why its not working normally

Link to comment
Share on other sites

If I place the case $button above the function:

Case $button

 _IECreate("https://twitter.com/") ; <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< You forgot to put this inside the $oIE variable

            Call("save")

            For $idx = 0 To _GUICtrlListBox_GetCount($List1) - 1
                Switch $idx
                    Case 0 To 150
                        Function1()
                EndSwitch
            Next

            Local $count = _GUICtrlListBox_GetCount($List2)
            Local $item, $total = 0
            For $index = 0 To $count - 1
                $item = _GUICtrlListBox_GetText($List2, $index)
                $total += Number(StringReplace($item, ".", ""))
            Next
            MsgBox(0, "", $total)
            GUICtrlSetData($Input3, $total) 

I get an error: syntax error

and this line:

Local $oIEnav = _IENavigate($oIE, "https://twitter.com/" & $link)

gives Waring: $oIE: possibly used before declaration

if I place the function after the $case (in the switch) than It doesnt respond.

This is the full function1()

Func function1()

    Local $link = GUICtrlRead($List1)
    Local $oIEnav = _IENavigate($oIE, "https://twitter.com/" & $link)
    _IELoadWait($oIEnav)

    $oIe = _IEAttach("Twitter")

    If @error = $_IEStatus_NoMatch Then
        ConsoleWrite("tab niet gevonden" & @CRLF)
        Exit
    EndIf

    $oLinks = _IELinkGetCollection($oIe)

    If @error = $_IEStatus_Success Then
        $linkCnt = @extended
        ConsoleWrite("Link count = " & $linkCnt & @CRLF)

        For $oLink In $oLinks
            If $oLink.className = 'ProfileNav-stat ProfileNav-stat--link u-borderUserColor u-textCenter js-tooltip js-openSignupDialog js-nonNavigable u-textUserColor' Then
                If $oLink.getAttribute('data-nav') = 'followers' Then
;~                                          $4er =  _GUICtrlListBox_GetCurSel($List2)
;~  _GUICtrlListBox_ReplaceString($List2, $4er, ""& $oLink.innerText)
;~                 ConsoleWrite('Followers = ' & $oLink.innerText & @CRLF)

                    $4er = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $4er, "" & StringReplace($oLink.innerText, "Volgers", ""))

                    _GUICtrlListBox_AddString($List2, "" & $oLink.innerText)
                    $4GG = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $4GG, "" & $oLink.innerText)


                    $text = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $text, "" & $oLink.innerText)

                EndIf
            EndIf
        Next
    EndIf




    $oLinks2 = _IELinkGetCollection($oIe)
    For $oLink2 In $oLinks2
        If $oLink2.className = 'ProfileNav-stat ProfileNav-stat--link u-borderUserColor u-textCenter js-tooltip js-openSignupDialog js-nonNavigable u-textUserColor' Then
            If $oLink2.getAttribute('data-nav') = 'following' Then
                ConsoleWrite('following = ' & $oLink2.innerText & @CRLF)
                $4er = _GUICtrlListBox_GetCurSel($List3)

                ;_GUICtrlListBox_AddString ($list3,""& $oLink2.innerText)
                ;                           $4er =  _GUICtrlListBox_GetCurSel($List3)
                ;_GUICtrlListBox_ReplaceString($List3, $4er, ""& $oLink2.innerText)


                $text = _GUICtrlListBox_GetCurSel($List3)
                _GUICtrlListBox_ReplaceString($List3, $text, "" & StringReplace($oLink2.innerText, "Volgend", ""))


            EndIf
        EndIf
    Next



    $iIndex += 1
    If $iIndex = _GUICtrlListBox_GetCount($List1) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List1, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List2) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List2, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List3) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List3, $iIndex)


    If $iIndex = _GUICtrlListBox_GetCount($List4) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List4, $iIndex)




    If $iIndex = _GUICtrlListBox_GetCount($List5) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List5, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List9) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List9, $iIndex)
    _IEQuit($oIe)





EndFunc

I dont understand why its not working normally

 

$oIE =  _IECreate("https://twitter.com/")

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

haha thank you  :)

The $oIE = was only missing

 

Glad we figured it out ;)

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

$oIE =  _IECreate("https://twitter.com/")

It worked in the beginning but it keeps giving me the error:

: warning: $oIE: possibly used before declaration.

This is my script

Func function1()

    Local $link = GUICtrlRead($List1)
    Local $oIEnav = _IENavigate($oIE, "https://twitter.com/" & $link)
; >>>>>>: warning: $oIE: possibly used before declaration.<<<<<<

    _IELoadWait($oIEnav)

    $oIe = _IEAttach("Twitter")

    If @error = $_IEStatus_NoMatch Then
        ConsoleWrite("tab niet gevonden" & @CRLF)
        Exit
    EndIf

    $oLinks = _IELinkGetCollection($oIe)

    If @error = $_IEStatus_Success Then
        $linkCnt = @extended
        ConsoleWrite("Link count = " & $linkCnt & @CRLF)

        For $oLink In $oLinks
            If $oLink.className = 'ProfileNav-stat ProfileNav-stat--link u-borderUserColor u-textCenter js-tooltip js-openSignupDialog js-nonNavigable u-textUserColor' Then
                If $oLink.getAttribute('data-nav') = 'followers' Then
;~                                          $4er =  _GUICtrlListBox_GetCurSel($List2)
;~  _GUICtrlListBox_ReplaceString($List2, $4er, ""& $oLink.innerText)
;~                 ConsoleWrite('Followers = ' & $oLink.innerText & @CRLF)

                    $4er = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $4er, "" & StringReplace($oLink.innerText, "Volgers", ""))

                    _GUICtrlListBox_AddString($List2, "" & $oLink.innerText)
                    $4GG = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $4GG, "" & $oLink.innerText)


                    $text = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $text, "" & $oLink.innerText)

                EndIf
            EndIf
        Next
    EndIf




    $oLinks2 = _IELinkGetCollection($oIe)
    For $oLink2 In $oLinks2
        If $oLink2.className = 'ProfileNav-stat ProfileNav-stat--link u-borderUserColor u-textCenter js-tooltip js-openSignupDialog js-nonNavigable u-textUserColor' Then
            If $oLink2.getAttribute('data-nav') = 'following' Then
                ConsoleWrite('following = ' & $oLink2.innerText & @CRLF)
                $4er = _GUICtrlListBox_GetCurSel($List3)

                ;_GUICtrlListBox_AddString ($list3,""& $oLink2.innerText)
                ;                           $4er =  _GUICtrlListBox_GetCurSel($List3)
                ;_GUICtrlListBox_ReplaceString($List3, $4er, ""& $oLink2.innerText)


                $text = _GUICtrlListBox_GetCurSel($List3)
                _GUICtrlListBox_ReplaceString($List3, $text, "" & StringReplace($oLink2.innerText, "Volgend", ""))


            EndIf
        EndIf
    Next



    $iIndex += 1
    If $iIndex = _GUICtrlListBox_GetCount($List1) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List1, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List2) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List2, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List3) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List3, $iIndex)


    If $iIndex = _GUICtrlListBox_GetCount($List4) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List4, $iIndex)




    If $iIndex = _GUICtrlListBox_GetCount($List5) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List5, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List9) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List9, $iIndex)
    _IEQuit($oIe)

EndFunc   

Case $button

Local $login = GUICtrlRead($List1)
Local $oIE =  _IECreate("https://twitter.com/")

Local $username =_IEGetObjById($oIE,"signin-email")
Sleep(1000)
Local $password =_IEGetObjById ($oIE,"signin-password")

_IEFormElementSetValue ($username,$login)
_IEFormElementSetValue ($password,"Dragon86")



Sleep(1000)
Local $oInputs = _IETagNameGetCollection($oIE, "input")
For $oInput In $oInputs
    If $oInput.name == "remember_me" Then $oInput.checked = false
Next

Sleep(1000)
Local $oButs = _IETagNameGetCollection($oIE, "button")
For $oBut In $oButs
If StringInStr($oBut.innertext, "Inloggen") Then _IEAction($oBut,"click")

Next
Sleep(1000)


            Call("save")


            Local $i2 = _GUICtrlListBox_GetCount($List1)

            $i2 = $i / 14



            GUICtrlSetData($Input4, $i)
Local $i = 0
Do
    function1()
    $i = $i + 1
Until $i = $i2  

In this loop the first time it will its job but after the second function1() it crashes says:

: warning: $oIE: possibly used before declaration.

I dont know what im doing worng :(

Link to comment
Share on other sites

It's because in your function you set the $oIE to _IEAttach("Twitter"), essentially taking away the _IECreate() object. You'll need to take that out of your function1()

Func function1()

    Local $link = GUICtrlRead($List1)
    Local $oIEnav = _IENavigate($oIE, "https://twitter.com/" & $link)
; >>>>>>: warning: $oIE: possibly used before declaration.<<<<<<

    _IELoadWait($oIEnav)

    $oIe = _IEAttach("Twitter"); <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< HERE

    If @error = $_IEStatus_NoMatch Then
        ConsoleWrite("tab niet gevonden" & @CRLF)
        Exit
    EndIf

    $oLinks = _IELinkGetCollection($oIe)

    If @error = $_IEStatus_Success Then
        $linkCnt = @extended
        ConsoleWrite("Link count = " & $linkCnt & @CRLF)

        For $oLink In $oLinks
            If $oLink.className = 'ProfileNav-stat ProfileNav-stat--link u-borderUserColor u-textCenter js-tooltip js-openSignupDialog js-nonNavigable u-textUserColor' Then
                If $oLink.getAttribute('data-nav') = 'followers' Then
Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

It's because in your function you set the $oIE to _IEAttach("Twitter"), essentially taking away the _IECreate() object. You'll need to take that out of your function1()

I took the line:

$oIe = _IEAttach("Twitter")

out, but it still gives me an error on line:

Local $oIEnav = _IENavigate($oIE, "https://twitter.com/" & $link)
warning: $oIE: possibly used before declaration.
Link to comment
Share on other sites

I am now trying this:

Func function1()

    $oIe = _IEAttach("Twitter")
$oIE = ObjGet("", "InternetExplorer.Application")
    Local $link = GUICtrlRead($List1)
    Local $oIEnav = _IENavigate($oIE, "https://twitter.com/" & $link)
    _IELoadWait($oIEnav)



    If @error = $_IEStatus_NoMatch Then
        ConsoleWrite("tab niet gevonden" & @CRLF)
        Exit
    EndIf

    $oLinks = _IELinkGetCollection($oIEnav)

    If @error = $_IEStatus_Success Then
        $linkCnt = @extended
        ConsoleWrite("Link count = " & $linkCnt & @CRLF)

        For $oLink In $oLinks
            If $oLink.className = 'ProfileNav-stat ProfileNav-stat--link u-borderUserColor u-textCenter js-tooltip js-openSignupDialog js-nonNavigable u-textUserColor' Then
                If $oLink.getAttribute('data-nav') = 'followers' Then
;~                                          $4er =  _GUICtrlListBox_GetCurSel($List2)
;~  _GUICtrlListBox_ReplaceString($List2, $4er, ""& $oLink.innerText)
;~                 ConsoleWrite('Followers = ' & $oLink.innerText & @CRLF)

                    $4er = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $4er, "" & StringReplace($oLink.innerText, "Volgers", ""))

                    _GUICtrlListBox_AddString($List2, "" & $oLink.innerText)
                    $4GG = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $4GG, "" & $oLink.innerText)


                    $text = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $text, "" & $oLink.innerText)

                EndIf
            EndIf
        Next
    EndIf




    $oLinks2 = _IELinkGetCollection($oIEnav)
    For $oLink2 In $oLinks2
        If $oLink2.className = 'ProfileNav-stat ProfileNav-stat--link u-borderUserColor u-textCenter js-tooltip js-openSignupDialog js-nonNavigable u-textUserColor' Then
            If $oLink2.getAttribute('data-nav') = 'following' Then
                ConsoleWrite('following = ' & $oLink2.innerText & @CRLF)
                $4er = _GUICtrlListBox_GetCurSel($List3)






                ;_GUICtrlListBox_AddString ($list3,""& $oLink2.innerText)
                ;                           $4er =  _GUICtrlListBox_GetCurSel($List3)
                ;_GUICtrlListBox_ReplaceString($List3, $4er, ""& $oLink2.innerText)


                $text = _GUICtrlListBox_GetCurSel($List3)
                _GUICtrlListBox_ReplaceString($List3, $text, "" & StringReplace($oLink2.innerText, "Volgend", ""))


            EndIf
        EndIf
    Next



    $iIndex += 1
    If $iIndex = _GUICtrlListBox_GetCount($List1) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List1, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List2) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List2, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List3) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List3, $iIndex)


    If $iIndex = _GUICtrlListBox_GetCount($List4) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List4, $iIndex)




    If $iIndex = _GUICtrlListBox_GetCount($List5) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List5, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List9) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List9, $iIndex)
    _IEQuit($oIe)





EndFunc

and it give a error on line

For $oLink2 In $oLinks2

: ==> Variable must be of type "Object".:

I think im close but  I dont know why its giving me this error when I used this code before without any problem

But dont use that part:

Func function1()

    $oIe = _IEAttach("Twitter")
$oIE = ObjGet("", "InternetExplorer.Application")
    Local $link = GUICtrlRead($List1)
    Local $oIEnav = _IENavigate($oIE, "https://twitter.com/" & $link)
    _IELoadWait($oIEnav)



    If @error = $_IEStatus_NoMatch Then
        ConsoleWrite("tab niet gevonden" & @CRLF)
        Exit
    EndIf

    $oLinks = _IELinkGetCollection($oIEnav)

    If @error = $_IEStatus_Success Then
        $linkCnt = @extended
        ConsoleWrite("Link count = " & $linkCnt & @CRLF)

        For $oLink In $oLinks
            If $oLink.className = 'ProfileNav-stat ProfileNav-stat--link u-borderUserColor u-textCenter js-tooltip js-openSignupDialog js-nonNavigable u-textUserColor' Then
                If $oLink.getAttribute('data-nav') = 'followers' Then
;~                                          $4er =  _GUICtrlListBox_GetCurSel($List2)
;~  _GUICtrlListBox_ReplaceString($List2, $4er, ""& $oLink.innerText)
;~                 ConsoleWrite('Followers = ' & $oLink.innerText & @CRLF)

                    $4er = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $4er, "" & StringReplace($oLink.innerText, "Volgers", ""))

                    _GUICtrlListBox_AddString($List2, "" & $oLink.innerText)
                    $4GG = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $4GG, "" & $oLink.innerText)


                    $text = _GUICtrlListBox_GetCurSel($List2)
                    _GUICtrlListBox_ReplaceString($List2, $text, "" & $oLink.innerText)

                EndIf
            EndIf
        Next
    EndIf


;~  $oLinks2 = _IELinkGetCollection($oIEnav)
;~  For $oLink2 In $oLinks2
;~      If $oLink2.className = 'ProfileNav-stat ProfileNav-stat--link u-borderUserColor u-textCenter js-tooltip js-openSignupDialog js-nonNavigable u-textUserColor' Then
;~          If $oLink2.getAttribute('data-nav') = 'following' Then
;~              ConsoleWrite('following = ' & $oLink2.innerText & @CRLF)
;~              $4er = _GUICtrlListBox_GetCurSel($List3)




;~              $text = _GUICtrlListBox_GetCurSel($List3)
;~              _GUICtrlListBox_ReplaceString($List3, $text, "" & StringReplace($oLink2.innerText, "Volgend", ""))


;~          EndIf
;~      EndIf
;~  Next




    $iIndex += 1
    If $iIndex = _GUICtrlListBox_GetCount($List1) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List1, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List2) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List2, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List3) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List3, $iIndex)


    If $iIndex = _GUICtrlListBox_GetCount($List4) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List4, $iIndex)




    If $iIndex = _GUICtrlListBox_GetCount($List5) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List5, $iIndex)

    If $iIndex = _GUICtrlListBox_GetCount($List9) Then $iIndex = 0
    _GUICtrlListBox_SetCurSel($List9, $iIndex)
    _IEQuit($oIe)





EndFunc

It Wont even load the the page with _IENavigate

Edited by Arclite86
Link to comment
Share on other sites

Alrighty, try moving

$oIE =  _IECreate("https://twitter.com/")

To before your function1() declaration. Also, take out any other calls to $oIE you will start confusing yourself, Unless the above example worked.

Also, the reason it is saying it is not an object is because that did not create an object, you'll need to check it with isObj()

Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

Alrighty, try moving

$oIE =  _IECreate("https://twitter.com/")

To before your function1() declaration. Also, take out any other calls to $oIE you will start confusing yourself, Unless the above example worked.

Also, the reason it is saying it is not an object is because that did not create an object, you'll need to check it with isObj()

Ok I think I will just start a IE browser when startup (hidden) but how can I focus a Case $ button

for example : _IECreate("https://Google.com/")

so only have to find/focus this browser.

Link to comment
Share on other sites

WinActivate("Google - Windows Internet Explorer")
?

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

WinActivate("Google - Windows Internet Explorer")
?

 

Thanks it works but I get this error

>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\joesoef pc\Desktop\autoit\twitter programma\test.au3" /UserParams    
+>17:58:47 Starting AutoIt3Wrapper v.2.2.0.0 SciTE v.3.4.1.0   Keyboard:00020409  OS:WIN_8/  CPU:X64 OS:X64    Environment(Language:0413)
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\joesoef pc\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\joesoef pc\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.10.2)  from:C:\Program Files (x86)\AutoIt3  input:C:\Users\joesoef pc\Desktop\autoit\twitter programma\test.au3
+>17:58:47 AU3Check ended.rc:0
>Running:(3.3.10.2):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\joesoef pc\Desktop\autoit\twitter programma\test.au3"    
--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 T3.0-1 Error from function _IENavigate, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IELinkGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 T3.0-1 Error from function _IEQuit, $_IEStatus_InvalidDataType

after the first function1() it doesnt respons and will not navigate any more, but it doesnt give any errors

I think it has to do with this code in the case:

Local $i2 = _GUICtrlListBox_GetCount($List1)

Local $i = 0
Do
    scanner()
    $i = $i + 1 ; Or $i += 1 can be used as well.
Until $i = $i2 ; Increase the value of $i until it equals the value of 10.
Link to comment
Share on other sites

Can you post ALL of your code in one [autoit ] [/ autoit] code snippet so I can analyze? It seems like something is going wrong and it is very hard to piece together all the parts you've provided ;)

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

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