DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: delete certain url from History url

  1. #1
    Join Date
    Mar 2005
    Posts
    38

    delete certain url from History url

    Is possible...???

    I spossible to delete the url visited from the list tath apper in left windowd of IE history via VB code, exactly when i click with right mouse on the list and delete selected url (see image attached)???

    In this case i just have the complete url sored in URL variable to find in the history list???

    note:
    But really my prob is...
    MY code loop 1.121 url a nge get data from web page to insert in excel sheet. Now, after the code finished in history list have 1.121 url!!!!!!!!!!!!!!!!!

    Another good solution is during the code work not save url in history, is this possible??


    (part of VB code):

    ''''''''''''''''''''''''''''''''''''''''''''''''''

    URL = "https://www.mysite.com/priv/mondo/cgi/listavariazioni.aps?CCIAA=" & INDEX_CCIAA & "&NREA=" & INDEX_NREA & "&TIPOMON=VAC1&TIPOMONDO=BNL&PRESAVISIONE=Y"

    OIE.Visible = True
    OIE.Navigate (URL)

    Do While OIE.ReadyState <> 4 Or OIE.busy
    DoEvents
    Loop

    ''''''''''''''''''''''''''''''''''''''''''''''''''
    Last edited by luca90; 01-15-2009 at 04:58 PM.

  2. #2
    Join Date
    Mar 2008
    Location
    Lancashire, UK
    Posts
    156
    Not sure. I don't think you can do it through the WebBrowser control

    Is that all the code you have?

  3. #3
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    Open Regedit.

    Look for an delete this key or a specific entry in the key:

    HKEY_CURRENT_USER, "Software\Microsoft\Internet Explorer\TypedURLs"

  4. #4
    Join Date
    Mar 2005
    Posts
    38
    Quote Originally Posted by Hack
    Open Regedit.

    Look for an delete this key or a specific entry in the key:

    HKEY_CURRENT_USER, "Software\Microsoft\Internet Explorer\TypedURLs"
    OK...
    After the code finished have in history 1.121 url (see image attached.)

    my idea:
    during the code loop all URL to maintan free the history list is possible to delete certain url by Var...

    assuming URL=https://www.cerved.com/priv/mondo/cgi/listavariazioni.aps?CCIAA=AG&NREA=161718&TIPOMON=VAC1&TIPOMONDO=BNL&PRESAVISIONE=Y


    In effect...
    the code to delete in a few words:

    code run using URL=https://www.cerved.com/priv/mondo/cgi/listavariazioni.aps?CCIAA=AG&NREA=161718&TIPOMON=VAC1&TIPOMONDO=BNL&PRESAVISIONE=Y
    after operation is finsihed with tghuis URL
    delete URL=https://www.cerved.com/priv/mondo/cgi/listavariazioni.aps?CCIAA=AG&NREA=161718&TIPOMON=VAC1&TIPOMONDO=BNL&PRESAVISIONE=Y
    next url
    code run using URL=https://.....
    delete URL=https://www....
    ecc...
    Last edited by luca90; 01-15-2009 at 04:58 PM.

  5. #5
    Join Date
    Mar 2008
    Location
    Lancashire, UK
    Posts
    156
    See the attached image, if you're struggling.

    To do this programmatically, you'd have to enumerate the registry sub-keys in "Software\Microsoft\Internet Explorer\TypedURLs", and then look for your URL.
    Attached Images Attached Images

  6. #6
    Join Date
    Mar 2005
    Posts
    38
    Quote Originally Posted by CptNeutral
    See the attached image, if you're struggling.

    To do this programmatically, you'd have to enumerate the registry sub-keys in "Software\Microsoft\Internet Explorer\TypedURLs", and then look for your URL.
    ok tested and work the registry delete method... but really the url remain in the history list!!!!

    if i click on ie icon History the url already deleted is still present in list!!!!
    attached userform in VBA excel with experiment
    Last edited by luca90; 01-15-2009 at 04:58 PM.

  7. #7
    Join Date
    Mar 2008
    Location
    Lancashire, UK
    Posts
    156
    Your code is fine for deleting the drop down list history

    However, page history is stored in a different location:
    %USERPROFILE%\Local Settings\History

    It's a special folder, so this doesn't work.

    You'll have to try something similar to that though

  8. #8
    Join Date
    Mar 2005
    Posts
    38
    Quote Originally Posted by CptNeutral
    Your code is fine for deleting the drop down list history

    However, page history is stored in a different location:
    %USERPROFILE%\Local Settings\History

    It's a special folder, so this doesn't work.

    You'll have to try something similar to that though
    Ok....
    work!
    2 prob:
    - Ho to set the Today dir?
    - Ho to loop url in this dir?

    The script you suggest i have a path similar:
    C:\Documents and Settings\oi24683\Impostazioni locali\Cronologia....
    Ho to go to the single dir named: Today, last week... and list the url?

Similar Threads

  1. WebCrawler program not working properly
    By bdjos1 in forum Java
    Replies: 0
    Last Post: 07-05-2006, 10:31 AM
  2. help reg creating ms access file
    By vbcoder in forum VB Classic
    Replies: 9
    Last Post: 04-28-2005, 12:36 PM
  3. Delete history files
    By Poornima in forum ASP.NET
    Replies: 1
    Last Post: 08-27-2002, 02:19 AM
  4. Replies: 0
    Last Post: 08-21-2002, 04:25 PM
  5. Capturing URL History
    By Keith Caselman in forum ASP.NET
    Replies: 2
    Last Post: 04-24-2000, 05:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center