Results 1 to 3 of 3

Thread: Deleting all Internet Explorer window

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2007
    Posts
    544

    Deleting all Internet Explorer window

    Is there a way to do it? That way my program can run on clean state.

    Also, if we delete cookies but do not restart ie, is there a way website can still track us?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Deleting all Internet Explorer window

    You don't delete them...you close them. Try this.
    Code:
    Option Explicit
    
    Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" ( _
    ByVal hwnd As Long, _
    ByVal wMsg As Long, _
    ByVal wParam As Long, _
    ByVal lParam As Long) As Long
    
    Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" ( _
    ByVal hWnd1 As Long, _
    ByVal hWnd2 As Long, _
    ByVal lpsz1 As String, _
    ByVal lpsz2 As String) As Long
    
    Private Const WM_CLOSE As Long = &H10
    
    Private Sub Command1_Click()
    Dim lhWnd As Long
    Do
    lhWnd = FindWindowEx(0&, lhWnd, "IEFrame", vbNullString)
            If lhWnd Then PostMessage lhWnd, WM_CLOSE, 0&, 0&
    Loop While lhWnd
    End Sub

  3. #3
    New Member
    Join Date
    Jun 2011
    Posts
    4

    Re: Deleting all Internet Explorer window

    is possible no close the ieframe i mean only set hidden properties?
    like ie.visible = false?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width