Jump to content

_IECreateEmbedded: Not deleted cookie! Help please!


Recommended Posts

Help me please(((((((

 


 

#include <IE.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>


;-----------------------Example!-----------------------------------
$hGUI = GUICreate('AutoIt no delete cookie!', 800, 400, -1, -1, $WS_SIZEBOX, $WS_EX_TOOLWINDOW)
$oIE = _IECreateEmbedded()
$iObjIE = GUICtrlCreateObj($oIE, 0, 0, 800, 400)
GUICtrlSetResizing($iObjIE, 2 + 32)
GUISetState()


_IENavigate($oIE, 'https://www.autoitscript.com/forum/login')

$oColl = _IETagNameGetCollection($oIE, 'INPUT')
For $o In $oColl
    If $o.Id = 'elInput_auth' Then
        _IEPropertySet($o, 'innertext', 'NoDeleteCookie') ; My test login
        $o.scrollIntoView()
    EndIf
    If $o.Id = 'elInput_password' Then
        _IEPropertySet($o, 'innertext', 'DSA34r34rf43') ; My test password
        $o.scrollIntoView()
    EndIf
Next

$oColl = _IETagNameGetCollection($oIE, 'BUTTON')
For $o In $oColl
    If $o.ClassName = 'ipsButton ipsButton_primary' And $o.Type = 'submit' Then
        $o.ScrollIntoView()
        _IEAction($o, 'click')
        _IELoadWait($oIE)
    EndIf
Next

While 1
    _IENavigate($oIE, 'https://www.autoitscript.com/forum/settings/')
    If StringInStr(_IEBodyReadHTML($oIE), 'Manage your account settings, and set up social network integration') Then MsgBox(16, 'No delete cookie!', 'Succes login')

    $oIE.document.cookie = "" ; NO WORKING!
    $oIE.cookie = 0 ; NO WORKING!
    $oIE.quit() ; NO WORKING!
    $oIE = 0 ; NO WORKING!
    RunWait(@SystemDir & "\Rundll32.exe InetCpl.cpl,ClearMyTracksByProcess 255", '', @SW_HIDE); NO WORKING!
    RunWait(@SystemDir & "\Rundll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351", '', @SW_HIDE) ; NO WORKING!
    GUICtrlDelete($iObjIE) ; NO WORKING!
    GUIDelete($hGUI) ; NO WORKING! NooooooooooooooooOOOOOOOOOOOO!!!!! 


    $hGUI = GUICreate('AutoIt no delete cookie!', 800, 400, -1, -1, $WS_SIZEBOX, $WS_EX_TOOLWINDOW)
    $oIE = _IECreateEmbedded()
    $iObjIE = GUICtrlCreateObj($oIE, 0, 0, 800, 400)
    GUICtrlSetResizing($iObjIE, 2 + 32)
    GUISetState()

WEnd

Do
    Sleep(10)
Until GUIGetMsg() = -3

 

Edited by NoDeleteCookie
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...