[vb 2010] Please help!

Status
Not open for further replies.

Aristide

Old School
Original poster
old school
member
Joined
Apr 29, 2011
Posts
1,843
Reaction score
215
Points
158
Location
Milan, Italy
Hello. i want to make a bot that continues to enter some "things" that are in a line one after each other (in a txt file) into the box where you put the wireless passwords for wep and wpa. like this one; (Sorry if its in italian, just try to connect to a wpa)
wpac.png


The "things" format is like this.

D5B52CC50B0C26BB54339F2A79
62F4A514719FA3AB8FFBD87D08
A65E8F319A35C6717118096C85
8F939ACF655A374BAAEDDD7F86
258EE754D7809ED95963373F9B
E718492B2A0EB93247CCD86B46
BA54E071A0773CFFDB0D5532E5
F791B763D16EDFEA5E0C898CDC
4161F1026BB18102B331393D6D
35D16F60E2DF46B297A588AA53

what would be the code to put in the botton? like i mean, opening up the process, and putting in the stuff that i could even copy in a textbox or a listbox.

Thanks

also, tell me if this is allowed to post on here, cos i sincerely dont know. And i just wanna test this on mine lol
 
K

KamaluNg

Guest
I don't know if you can make a program to bot another program... If the box you'd like to fill is on the web you can just make a listbox, load a text file and each selected line in the listbox can be loaded into a textbox
 

goku93

Senior
senior
member
Joined
Jun 13, 2011
Posts
465
Reaction score
81
Points
146
I dont know if this can work but with Sendkeys, a listbox and a timer can work xD

Edit: Tried with notepad so can work, try this:
Code:
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        SendKeys.Send( THE "THIGS" ARE HERE )
SendKeys.Send("{ENTER}")
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Timer1.Start()
    End Sub
Figure out how to use a listbox and can work xD
 

Lightness

Banned
Joined
Jul 5, 2011
Posts
6,514
Reaction score
1,773
Points
0
Location
SF Bay Area
The keys would go in a listbox you make.

Make sure you create a timer. Here's the code:
try
Sendkeys.send(listbox1.selecteditem)
Sendkeys.send("{ENTER}")
listbox1.selectedindex = listbox1.selectedindex + 1
catch ex as exception
timer1.enabled = false
end try

Make a start button, here is the code for it.
Timer1.Enabled = True
Listbox1.selectedindex = 0
 
  • Like
Reactions: Aristide

Aristide

Old School
Original poster
old school
member
Joined
Apr 29, 2011
Posts
1,843
Reaction score
215
Points
158
Location
Milan, Italy
ok, thanks both guys, but were can i specify where to send the "things"?like the process on windows or the textbox of the internet?
 

Aristide

Old School
Original poster
old school
member
Joined
Apr 29, 2011
Posts
1,843
Reaction score
215
Points
158
Location
Milan, Italy
lol, that is absolutely great! would that mean that i have just got to select the box with my cursor on any windows or internet thing and it goes?

edit: my listbox has blocked, it freezez and always goes on the first line...... and how do i specify where to imput the values for example on a waebsites textbox?
 
Status
Not open for further replies.