Jump to content

visual basic 2008 help needed


Recommended Posts

hi i have started my own program in vb 2008 and i need help i wont it to go to a url but i need it to change every min

 

i can get the browser to go to a url like this

 

if checkbox1.checked = true then
axwebbrowser.navagate = "http://www.google.com/search? + textbox1.txt"

 

the thing is i need it to choose a randome word from a text file and ad that at the end not text for a text box i wall so need it to choose a new word every min

 

if any one can help that wood be great

Link to comment
https://forums.phpfreaks.com/topic/193800-visual-basic-2008-help-needed/
Share on other sites

The basic concept:

 

 

Gather all the lines into a vector, then get the size of the vector and pick a random line from 0 through (size of vector-1).  Then that's your URL.

 

 

As for whatever else you said in that post, no idea what you were asking.  Side note:  If you're scraping google, that's probably against their ToS.

 

 

 

(Anyway, look into fopen, fgets and vector.)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.