darklexus2k9 Posted March 1, 2010 Share Posted March 1, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/193800-visual-basic-2008-help-needed/ Share on other sites More sharing options...
corbin Posted March 3, 2010 Share Posted March 3, 2010 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.) Quote Link to comment https://forums.phpfreaks.com/topic/193800-visual-basic-2008-help-needed/#findComment-1020750 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.