Results 1 to 4 of 4

Thread: VB Interaction with a web page

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2009
    Posts
    1

    Exclamation 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?

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  3. #3
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    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.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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
  •  



Click Here to Expand Forum to Full Width