|
-
Jan 9th, 2009, 09:05 PM
#1
Thread Starter
New Member
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?
-
Jan 9th, 2009, 10:17 PM
#2
Re: VB Interaction with a web page
Thread Moved from FAQ Forum to Classic VB
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 10th, 2009, 01:17 AM
#3
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.
-
Jan 10th, 2009, 04:13 PM
#4
Re: VB Interaction with a web page
Popular thread showing various methods of retrieval.
http://www.vbforums.com/showthread.php?t=330341
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|