Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Visual Basic Programming › webbrowser automating

webbrowser automating

Posts 1–13 of 13 · Page 1 of 1
CO
CodeHPro
webbrowser automating
im going to post a bunch of code on webbrowser automating that i used to use when i just started learnign before i got into webrequest
Click A Button
Code:
webbrowser1.Document.All("Button ID").InvokeMember("click")
IF ID Exists
Code:
 If WebBrowser1.Document.All("ID") Is Nothing Then
   Else
            MsgBox("ID  exsits")
        End If
Click Button Just By Value Of It
Code:
Private Function GetBtnByValue(ByVal value As String) As HtmlElement
        For Each d As HtmlElement In Webbrowser1.Document.GetElementsByTagName("input")
            If (d.GetAttribute("type").ToLower = asd.Text Or d.GetAttribute("type").ToLower = "submit") Then
                If (d.GetAttribute("value") = value) Then
                    Return d
                    Exit For
                End If
            End If
        Next
    End Function
    Private Sub ToolStripButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton1.Click
        GetBtnByValue("go").InvokeMember("Click")
    End Sub
Click Check box
Code:
   Dim outer As String = WebBrowser1.Document.All("PersistentCookie").OuterHtml
        WebBrowser1.Document.All("Check Box ID").OuterHtml = outer.Remove(outer.Length - 2) + " checked>"
Click all Check box's with same value
Code:
 For Each InputBx As HtmlElement In WebBrowser1.Document.GetElementsByTagName("input")
            If (InputBx.GetAttribute("type").ToLower = "radio") AndAlso (InputBx.GetAttribute("value").ToLower = "Value Of Check Box") Then
                InputBx.InvokeMember("Click")
            End If
        Next
Fill Textbox In Webbrowser
Code:
For Each HTMLele As HtmlElement In WebBrowser1.Document.All
 If HTMLele.Name = "ID" Then
   HTMLele.SetAttribute("value", "someemail@somewhere.comValue")
  End If
 Next
Get Text From Textbox In Webbrowser
Code:
        Dim text As String = WebBrowser1.Document.All("Textbox ID).GetAttribute("value")
  TextBox1.Text = text
Stop IE Pop ups
Code:
WebBrowser1.ScriptErrorsSuppressed = True
Check URL
Code:
 If WebBrowser1.Url.ToString = "URL" Then
webbrowser contains
Code:
 If WebBrowser1.DocumentTex*****ntains("Phrase") Then
        Else
        End If
Webbrowser status
Code:
 TextBox1.Text = WebBrowser1.StatusText
Show Page Source
Code:
  TextBox1.Text = webBrowser.Document.body.innerHTML
Download Page
Code:
        Dim MyWebClient As New System.Net.WebClient()
        TextBox1.Text = MyWebClient.DownloadString("URL")
#1 · 16y ago
Liz
[MPGH]Liz
oouuuhh pretty, whats it do
#2 · 16y ago
CO
CodeHPro
Quote Originally Posted by Liz View Post
oouuuhh pretty, whats it do
just codes so if you want to make a bot to do an automated task for you
#3 · 16y ago
Liz
[MPGH]Liz
oh ouh, would this work with grease monkey?
#4 · 16y ago
CO
CodeHPro
Quote Originally Posted by Liz View Post
oh ouh, would this work with grease monkey?
no this is vb 2008 code
#5 · 16y ago
Liz
[MPGH]Liz
gotcha, thanks ^^
#6 · 16y ago
Pixie
Pixie
Will this work on runescape?
#7 · 16y ago
JI
JIGS4W
I need a more clear idea of this... Im very confused. Im still learning<------------chooby
#8 · 16y ago
K4GE
K4GE
No Pixie, it wont work on RuneScape, since RuneScape is made in Java.
And your webbrowser would never be able to acces the data in the RuneScape client.
#9 · edited 16y ago · 16y ago
CoderNever
CoderNever
If I got this right , These are codes there interact with "Tools > Webbrowser" that you can use to furfill a simple task such as...Filling in a title textbox...so say you wanted to go to this page "http://www.mpgh.net/forum/newreply.php?do=newreply&noquote=1&p=######" and Fill in "Title:" With Web Codes , then you can set it to click a button in your Visual Basic Browser and then it will automatically fill it in with the data , which can be very useful for saving password information and getting your details typed in on a click of a button.

Thanks , Was Very Useful information
#10 · 16y ago
CO
CodeHPro
Quote Originally Posted by K4GE View Post
No Pixie, it wont work on RuneScape, since RuneScape is made in Java.
And your webbrowser would never be able to acces the data in the RuneScape client.
there is ways to send silent mouse clicks to the java window
#11 · 16y ago
K4GE
K4GE
Well yes thats true, but you won't be able to do stuff like: filling forms, clicking buttons (without telling the location (X-Y)), and so on...
But yes, what your saying is possible.
#12 · 16y ago
CO
CodeHPro
Quote Originally Posted by K4GE View Post
Well yes thats true, but you won't be able to do stuff like: filling forms, clicking buttons (without telling the location (X-Y)), and so on...
But yes, what your saying is possible.
way easy all you need to do is find the button you want to click get the color of it and have vb get the x,y of the color and click that x,y ive done stuff like this many times
#13 · 16y ago
Posts 1–13 of 13 · Page 1 of 1

Post a Reply

Similar Threads

  • [TUT]How to make a webbrowserBy frono15 in Programming Tutorials
    5Last post 18y ago
  • How to make an advanced webbrowserBy L3G0 in Programming Tutorials
    26Last post 13y ago
  • Favourite WebbrowserBy Bull3t in General
    43Last post 17y ago
  • [vid tut] how to make a webbrowser that can download.By trevor206 in Visual Basic Programming
    2Last post 16y ago
  • {TUT} Advanced WEBBROWSERBy codyray90 in Visual Basic Programming
    3Last post 17y ago

Tags for this Thread

#automating#webbrowser