VB Interaction with a web page
I'm relatively new to VB, and I wanted to take the incentive to try out a couple of advanced features. Right now, I am more or less making a bot that will automatically play a text-based game, working off of statistics and levels to intelligently make decisions in place of the user. This game, Mob Wars, involves doing jobs, which uses energy, and fighting, which uses health and stamina, along with other similar aspects. Is there a way to get a value from a web page to the VB code relatively efficiently? From there, the work would be easy. Since I only started using VB a few months ago, I would need help with concepts not much beyond looping and Case statements. Anyone care to help?
Re: VB Interaction with a web page
Thread Moved from FAQ Forum to Classic VB
Re: VB Interaction with a web page
Is there a way to get a value from a web page to the VB code relatively efficiently?
Yes, you can use WebBrowser Control and if you know the name of the variable that holds the value you want then it's fairly straight forward. Can you specify more specifically what the item is on the web page that has this value you want? Example: is it a textfield? a item in a combobox, listbox? Is it a value generated by a Java Script? The method used will depend on the source of the value wanted.
Re: VB Interaction with a web page
Popular thread showing various methods of retrieval.
http://www.vbforums.com/showthread.php?t=330341