What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » VB auto click

VB auto click
Author: Message:
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
RE: VB auto click
code:
Sub ReplaceElementAttributes()
    Dim objDoc As FPHTMLDocument
    Dim objElement As IHTMLElement
    Dim strTempText As String

    Const CHARACTER_LENGTH As Integer = 7
    Const STRING_FOUND As Integer = 1
    Const TAG_NAME As String = "a"
    Const ATTRIBUTE_NAME As String = "href"
    Const TARGET_STRING As String = "http://"

    Set objDoc = ActiveDocument

    ' Remove "http://" from the href attribute of all
    ' A elements in the document.
    For Each objElement In objDoc.all.tags(tagName:=TAG_NAME)
        strTempText = objElement.getAttribute _
            (strAttributeName:=ATTRIBUTE_NAME)
        ' Remove "http://" only if it appears at the beginning
        ' of the href attribute's value.
        If InStr(strTempText, TARGET_STRING) = STRING_FOUND Then
            strTempText = Right(strTempText, _
                Len(strTempText) - CHARACTER_LENGTH)
        End If
    Next objElement
End Sub
I found that on msdn here

you could use that and the link url is in 'strTempText' then u could do like
code:
wb.navigate strTempText
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
05-07-2005 12:27 AM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
VB auto click - by DJeX on 05-06-2005 at 11:37 PM
RE: VB auto click - by Dempsey on 05-06-2005 at 11:43 PM
RE: VB auto click - by DJeX on 05-06-2005 at 11:55 PM
RE: VB auto click - by Dempsey on 05-07-2005 at 12:00 AM
RE: VB auto click - by DJeX on 05-07-2005 at 12:19 AM
RE: VB auto click - by Dempsey on 05-07-2005 at 12:27 AM
RE: VB auto click - by DJeX on 05-07-2005 at 01:38 AM
RE: VB auto click - by Dempsey on 05-07-2005 at 08:46 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On