Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

VB need help simulating a keypress or keydown event on a webbrowser element

ok so im making a follow bot but i need help simulating a keypress or keydown or some kind of typing simulation event on a webbrowser id element so that when i login the preset text "place email here" resets

https://gyazo.com/acf536631c5b0d662ef665f775966c87
You should be able to get the element by ID, and then put your desired text or variable in there..For example
Code
wb.Document.GetElementById("username").SetAttribute("value", txtEmail.text)

and then you can press the Login button once again by getting the element ID and then pressing the button
Code
For Each element As HtmlElement In wb.Document.GetElementsByTagName("a")
If element.GetAttribute("id") = "commentPost" Then
element.InvokeMember("click")
Exit For
End If
Next

you will need to edit the GetElementByID tags above to go with your own form. Hope it helps with what you're trying to do..


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Java] by Hi I'm ArnoldJan 8, 2022 10:36 AM 1 115 Jan 8, 2022 10:36 AM
Last Post: Lookdadon
[C#] by agoSwitchDec 27, 2021 08:53 AM 6 292 Dec 27, 2021 08:53 AM
Last Post: oje28830
[Python] by roosiinfidel09Aug 19, 2021 07:32 AM 1 171 Aug 19, 2021 07:32 AM
Last Post: john__john