Jump to content

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.)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.