Community discussion forum

I need help in some coding

  • 7 months ago

    we.. hey i need a little help in vb6.0

    ok

    1st. I want to kno how to get certain text like premade text that i want into a certain field on internet browser every time i visit that site in ma project.

    2nd. I want to extract certain text from the web site like:" blah_blah1@aol.in " into a text box on the side an be save in a text file on desktop or drive

     

    like i really need this help an if u have any thing to tell me i would really like it thanks

  • Advertisement

    Simply the fastest line-level profiler for .NET ever

    “The low overhead means it has minimal impact on the execution of my program”
    Mark Everest, Development Team Leader, Renault F1 Team Ltd.

    Try out the new ANTS Profiler 4 for yourself. Download your 14-day trial now

  • 7 months ago

    Hi,

    Add a text box and a button to a form;

    Try

    Private Sub Form_Load()
        Dim ie As Object
        Set ie = CreateObject("InternetExplorer.Application")
        'ie.Visible = True
        ie.Navigate "http://www.developerfusion.co.uk/"
        Do While ie.busy
            DoEvents
        Loop
        ' Get the text from the second link
        Text1.Text = ie.document.links(1).outerText
        'close the browser
        ie.quit

    ' you can also loop through the links or forms on a web page
    'For Each link In IE_Browser.Document.Links()
    '   Next

    End Sub


    Private Sub Command1_Click()
        Dim sFile As String
        Dim fn As Integer
        sFile = "C:\Out.txt"
        fn = FreeFile
        Open sFile For Output As #fn
        Print #fn, Text1.Text
        Close #fn
    End Sub

  • 7 months ago

    LET ME EXPLAIN A LITTLE BETTER

    HMMM LETS SEEE.......

    ALRIGHT 4 INSTANCE I WENT TO WWW.AOL.COM AN I WENT TO THE GET EMAIL PAGE AN YOU KNO THAT U HAVE TO ENTER ALL YOUR INFORMATION 'NAME,DESIRED EMAIL,ACCOUNT SECURITY QUESTION & ETC................. NOW WHEN I GO ON MY PROJECT I WANT THE TEXT ALREADY FILLED IN EXCEPT THE PASSWORD FIELD & IMAGE CODE 

    AFTER THAT.......

    I WANT THA AOL SCREENNAME AND PASSWORD U HAVE SELECTED TO TO BE IN THE TEXT BOX ON THE SIDE OF MA PROJECT AN I CAN CLICK SAVE AN IT SAVE'S TO A TXT.FILE

    PS. I HAVE A PROJECT SIMILIAR TO THE 1 I WANT TO CREATE JUST DIFFRENT SITE AN IF U NEED TO SEE I CAN SEND U A LINK

    THANKS VERY MUCH

Post a reply

Enter your message below

Sign in or Join us (it's free).