• Welcome to Valhalla Legends Archive.
 

HTML GetStuff?

Started by titan0060, October 16, 2004, 08:45 PM

Previous topic - Next topic

titan0060

Ok, the GetStuff command basicaly searches a text file, but is there any way i can have it search an INTERNET PAGE?  the page is like plain HTML, no flash or anything.

Warrior

You mean display the HTML? If you mean using a .html file for config.....wtf?
Quote from: effect on March 09, 2006, 11:52 PM
Islam is a steaming pile of fucking dog shit. Everything about it is flawed, anybody who believes in it is a terrorist, if you disagree with me, then im sorry your wrong.

Quote from: Rule on May 07, 2006, 01:30 PM
Why don't you stop being American and start acting like a decent human?

titan0060

i mean search my webbrowser (which is already on the site i want in frmBrowser) and look for a sertain string like "Yo"... Then display like in a msgbox,  what the next thing that comes after the word "Yo"...

Basicaly if i could convert the webbrowser into a string, i can just use the splt() command... but how do u convert it to a string.

Newby

The "GetStuff" function, if you are using the common one found in most open-source Visual Basic bots, utilizes API calls that don't access the internet.

You would have to re-code it using some sort of internet control, that would connect to the file, input its contents, and search through that.
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

titan0060

i never expected to use the exact getstuff code... i just want sumthing to search my WebBrowser1 for a sertain word...

______

Quote from: titan0060 on October 16, 2004, 09:34 PM
i never expected to use the exact getstuff code... i just want sumthing to search my WebBrowser1 for a sertain word...

You mean something like this?

If InStr(WebBrowserText, myword) = 0 Then
MsgBox "Not found."
Else
MsgBox "Found!"
End If

CrAz3D

Look @ the webpage's source through the webbrowser control.  YAY, that is how I got my lovely gmail acct.
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Newby

Quote from: CrAz3D on October 17, 2004, 12:53 AM
Look @ the webpage's source through the webbrowser control.  YAY, that is how I got my lovely gmail acct.
Idea stealer!
- Newby

Quote[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

Quote<TehUser> Man, I can't get Xorg to work properly.  This sucks.
<torque> you should probably kill yourself
<TehUser> I think I will.  Thanks, torque.

LivedKrad


titan0060

Quote from: CrAz3D on October 17, 2004, 12:53 AM
Look @ the webpage's source through the webbrowser control.  YAY, that is how I got my lovely gmail acct.

how do i get my program to open the page source...

CrAz3D

Quote from: titan0060 on October 17, 2004, 04:04 PM
Quote from: CrAz3D on October 17, 2004, 12:53 AM
Look @ the webpage's source through the webbrowser control.  YAY, that is how I got my lovely gmail acct.

how do i get my program to open the page source...
Don't remember, check pscode. (it pwns my mom)
rebundance - having or being in excess of sheer stupidity
(ré-bun-dance)
Quote from: Spht on June 22, 2004, 07:32 PMSlap.
Quote from: Adron on January 28, 2005, 09:17 AMIn a way, I believe that religion is inherently evil, which includes Christianity. I'd also say Christianity is eviller than Buddhism (has more potential for evil).
Quote from: iago on April 19, 2005, 01:06 PM
CrAz3D's ... is too big vertically, at least, too big with ... iago ...

Dyndrilliac

Use OpenURL on the inet control and give the value to a string variable.
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.

Imperceptus

How I do it
Your Inet Control  = MyInetControl

*note untested code


Private Sub Form_Load()
MyInetControl.execute("http://yoni.valhallalegends.com")

End Sub


Private Sub MyInetControl_StateChanged(ByVal State As Integer)
    Dim vtData As Variant
    Dim StrData As String
    Dim bDone As Boolean: bDone = False

With MyInetControl
    Select Case State       
        Case icError        ' 11   ' In case of error, return ResponseCode and
                                            ' ResponseInfo.
           vtData = .ResponseCode & ":" & .ResponseInfo
           vtData = .ResponseCode & ":" & .ResponseInfo
           itProcessCount = itProcessCount - 1
       Case icResponseCompleted     ' 12 good Retrieve server response
                                                        '  using the GetChunk
            vtData = .GetChunk(1024, icString) ' Get first chunk.
            Do While Not bDone
               StrData = StrData & vtData
               vtData = .GetChunk(331000, icString) ' Get next chunk.
               DoEvents
               If Len(vtData) = 0 Then bDone = True
            Loop
           
        Case Else
    End Select
End Sub



Hope this provides some ideas, not you might want to change the GetChunk Sizes around I just mashed some numbers on the numpad.  Execute is hands down way faster then OpenUrl.
Quote from: Hazard on August 07, 2003, 03:15 PM
Highlight your entire code. Press the delete key. Start over again using Cuphead's CSB tutorial and work your way from their rather than raping code from downloaded sources meant purely for learning purposes. If this does not fix the problem, uninstall Visual Basic and get a new hobby. I suggest Cricket.

YaYYo

Quote from: Imperceptus on October 20, 2004, 08:34 PM
How I do it
Your Inet Control  = MyInetControl

*note untested code


Private Sub Form_Load()
MyInetControl.execute("http://yoni.valhallalegends.com")

End Sub
[/quote]

Shouldnt it be My.InetControl.Execute("http://yoni.valhallalegends.com")

?

Dyndrilliac

No, MyInetControl is the controls name.
Quote from: Edsger W. DijkstraIt is practically impossible to teach good programming to students that have had a prior exposure to BASIC; as potential programmers they are mentally mutilated beyond hope of regeneration.