| Mirage Source http://miragesource.net/forums/ |
|
| INet http://miragesource.net/forums/viewtopic.php?f=201&t=3702 |
Page 1 of 1 |
| Author: | Beres [ Fri May 09, 2008 6:54 pm ] |
| Post subject: | INet |
Anyone know how to pull specific text from a site with the inet control? |
|
| Author: | Asrrin29 [ Fri May 09, 2008 7:14 pm ] |
| Post subject: | Re: INet |
I don't know about specific text, but I did post a tutorial on how to get your game to nab and display an RSS Feed here: viewtopic.php?f=75&t=3473 |
|
| Author: | Rian [ Fri May 09, 2008 7:18 pm ] |
| Post subject: | Re: INet |
There's also this one, I think it's more what you're looking for, but Asrrin's is cooler viewtopic.php?f=75&t=409&hilit=news+pulled+from+url |
|
| Author: | Beres [ Fri May 09, 2008 7:21 pm ] |
| Post subject: | Re: INet |
Ok. heres an example. I have this website here, http://www.sqconline.com/mba.html?N=1&AQL=5&level=1&type=1 and if you look there, under the "The Single sampling procedure is:" there is "Sample 200* items." Is it possible to get that number 200 and put it into a label? |
|
| Author: | Asrrin29 [ Fri May 09, 2008 7:25 pm ] |
| Post subject: | Re: INet |
I suppose you could use the code for pulling a web page's text into a text file, load that file into a string, and have a batch of code to compare words in the string until you find what you are looking for, but that would be awfully complex... |
|
| Author: | GIAKEN [ Fri May 09, 2008 8:36 pm ] |
| Post subject: | Re: INet |
Not really... (really not sure about the Mid function from the top of my head) Whatever = (pull information code) For I = 1 To Len(Whatever) If Mid(Whatever, I, 1) = "SomeCharacterYouLookingFor" Then Whatever2 = Mid(Whatever, I, 3) End If Next I Replace the SomeCharacterYouLookingFor with the first character you want to look for (example - 2). So look for 2 and then you should expect the length of how long it will be (like 200 is 3) so you make Whatever2 where that 200 would be... I repeat: Not sure about the Mid function without VB6 up. |
|
| Author: | Beres [ Fri May 09, 2008 9:52 pm ] |
| Post subject: | Re: INet |
But I cant just search for 200. Because what I forgot to mention is, that number changes depending on the Batch Size and AQL percentages. |
|
| Author: | GIAKEN [ Fri May 09, 2008 9:53 pm ] |
| Post subject: | Re: INet |
Well then look to see if the character IsNumeric. |
|
| Author: | Beres [ Fri May 09, 2008 9:54 pm ] |
| Post subject: | Re: INet |
Ok thx GIAKEN, I will try this out. |
|
| Author: | Asrrin29 [ Sat May 10, 2008 3:09 am ] |
| Post subject: | Re: INet |
what you can do is look for spaces in the text, and Len() dynamically until you get another space, so it separates the whole text into individual words. find the word preceding the number, and then the next "word" after that will be the number you need. |
|
| Author: | Beres [ Sat May 10, 2008 5:28 am ] |
| Post subject: | Re: INet |
Ok, how would I go about doing this? I tried to use Variable = INet.OpenURL(TheSite) and im stuck there. I have no clue how to use INet. Also, what came into my head is, if you look on that site, right after that number, there is an astrick (*). Would there be any way to get the number left of the astrick? |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|