Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


SOLVE THANK YOU
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Exodias
Expert Cheater
Reputation: 0

Joined: 14 May 2008
Posts: 220

PostPosted: Fri Aug 29, 2008 6:40 pm    Post subject: SOLVE THANK YOU Reply with quote

Okay so here is what i want to do in VB

Make A Form and that form will open a website when opens.
then once open it will send the text that is in a notepad file where the form is located at

for example:

The form will be in a folder with 2 other files
first file is Called ID
second file is called Password

once the form is at the website, it will send the text inside "ID"
it will press TAB and then send the text inside "Password"
then it will press enter

so how can i do this using VB


Last edited by Exodias on Fri Aug 29, 2008 9:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
Frostbyt3
Master Cheater
Reputation: 0

Joined: 07 Jan 2008
Posts: 323
Location: Australia

PostPosted: Fri Aug 29, 2008 7:01 pm    Post subject: Reply with quote

I hope you know basic VB.


Theory---
This can be done(Correct me if I'm wrong) Using

StreamReader and Writer
OR
Have a settings form, with two textboxes for ID and password

Sendkeys.Send()

Opening a website
OR
Putting a web control in a box, and opening it.
This way you would need a startup form, a web browser form and a settings form.


--Code samples

Create a settings form with 2 textboxes, called userID and password.
Create a web browser form.
When its finished loading, do a;

Code:
 SendKeys.Send(settingsForm.userID.text)
Sendkeys.Send("{TAB}")
Sendkeys.Send(settingsForm.passWord.text)


I'm not going to spoonfeed, just a general idea.

If you don't get it, post again and I'll post up an example or explain in detail.
Back to top
View user's profile Send private message MSN Messenger
Exodias
Expert Cheater
Reputation: 0

Joined: 14 May 2008
Posts: 220

PostPosted: Fri Aug 29, 2008 7:41 pm    Post subject: Reply with quote

Well i dont want the textbox inside of the form

reason being is that the web browser takes up the whole form

i can list couple things thats similar to what im trying to do

you know how CE can auto attach to thing by having an "autoAttach" file?

so for this, i want to have a folder with 3 items

Item 1: The form itself
Item2: The ID File ( Notepad File or whatever)
Item3: The Pass file ( notepad or w.e)

Once you opens the form, it will automatically go to a specific website

then it will enter the text inside "ID"
so that would be Item2

then it press TAB and enter the text inside "PASSWORD"

all the person would have to do is type their pass and ID iside of the 2 file
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Fri Aug 29, 2008 7:44 pm    Post subject: Reply with quote

Yes it is possible.

Use shell to execute the process or CreateProcessA.
Then use SendMessageA to do what u want. and use the asc code for tab to do tab.
Back to top
View user's profile Send private message
Frostbyt3
Master Cheater
Reputation: 0

Joined: 07 Jan 2008
Posts: 323
Location: Australia

PostPosted: Fri Aug 29, 2008 7:46 pm    Post subject: Reply with quote

Back to top
View user's profile Send private message MSN Messenger
Exodias
Expert Cheater
Reputation: 0

Joined: 14 May 2008
Posts: 220

PostPosted: Fri Aug 29, 2008 7:52 pm    Post subject: Reply with quote

where do i place the 2 text file?
and what do i have to make?
Confused

only my 5th day using VB

and also do i just put the code into the web browser?

EDIT: When i try to put in the code, it says that stringreader is not declare
Back to top
View user's profile Send private message
Frostbyt3
Master Cheater
Reputation: 0

Joined: 07 Jan 2008
Posts: 323
Location: Australia

PostPosted: Fri Aug 29, 2008 7:58 pm    Post subject: Reply with quote

Okay.

-Form setup
One web browser Control, set the 'url' property to the website.

-Physical Setup
Two files in the project directory and the debug/Release folders

-Code (In your web browser form, in the finished loading sub)
Code:
Dim fileReader As System.IO.StreamReader
fileReader = _
My.Computer.FileSystem.OpenTextFileReader("ID.txt")
Dim stringReader As String
stringReaderID = fileReader.ReadLine()


Repeat for password

Then you can (after the streamreader)


Code:
Sendkeys.Send(stringReaderID)
Sendkeys.Send("{TAB}")
Sendkeys.Send(stringReaderPassword)
Back to top
View user's profile Send private message MSN Messenger
Exodias
Expert Cheater
Reputation: 0

Joined: 14 May 2008
Posts: 220

PostPosted: Fri Aug 29, 2008 8:03 pm    Post subject: Reply with quote

whenever there is a "stringReaderID"

it say that its not declare

If you have TeamViewer go on my comp

ID:42 082 565
PASS: 9999
Back to top
View user's profile Send private message
dnsi0
I post too much
Reputation: 0

Joined: 04 Jan 2007
Posts: 2674

PostPosted: Fri Aug 29, 2008 8:03 pm    Post subject: Reply with quote

This seems ineffecient. What are you trying to make anyways?
Back to top
View user's profile Send private message
Exodias
Expert Cheater
Reputation: 0

Joined: 14 May 2008
Posts: 220

PostPosted: Fri Aug 29, 2008 8:05 pm    Post subject: Reply with quote

dnsi0 wrote:
This seems ineffecient. What are you trying to make anyways?


some things Shocked

EDIT: And if i make a form where there is a button, and 2 textbox

it will press TAB 2x
Back to top
View user's profile Send private message
Frostbyt3
Master Cheater
Reputation: 0

Joined: 07 Jan 2008
Posts: 323
Location: Australia

PostPosted: Fri Aug 29, 2008 8:13 pm    Post subject: Reply with quote

Okay. New way

Do the forms as before
2 text files, ID.txt and password.txt
So my ID is Dingus, and my password is cheese
ID.txt
Code:
Dingus

Password.txt
Code:
cheese

Nothing else!

When web browser has finished loading

Code:
Dim ID As String
ID = My.Computer.FileSystem.ReadAllText("ID.txt") 'Get data from the txt
Dim passWord As String
passWord = My.Computer.FileSystem.ReadAllText("password.txt")

SendKeys.Send(ID) 'Send ID

SendKeys.Send("{TAB}") 'Send TabDown

SendKeys.Send(passWord) 'Send password



And that should be it.

P.S Give me the site, and I'll make it for you if you don't get it.
Back to top
View user's profile Send private message MSN Messenger
Exodias
Expert Cheater
Reputation: 0

Joined: 14 May 2008
Posts: 220

PostPosted: Fri Aug 29, 2008 8:17 pm    Post subject: Reply with quote

uhm cant post URL but here

htt p:// lbpoly. schoolloop. com/
Back to top
View user's profile Send private message
Frostbyt3
Master Cheater
Reputation: 0

Joined: 07 Jan 2008
Posts: 323
Location: Australia

PostPosted: Fri Aug 29, 2008 8:30 pm    Post subject: Reply with quote

Here it is;
Made in VB 2008, tell me if there is any problem, or ask for help.

http://forum.cheatengine.org/download.php?id=39737



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.



Last edited by Frostbyt3 on Fri Aug 29, 2008 8:30 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Exodias
Expert Cheater
Reputation: 0

Joined: 14 May 2008
Posts: 220

PostPosted: Fri Aug 29, 2008 8:30 pm    Post subject: Reply with quote

Frostbyt3 wrote:
Okay. New way

Do the forms as before
2 text files, ID.txt and password.txt
So my ID is Dingus, and my password is cheese
ID.txt
Code:
Dingus

Password.txt
Code:
cheese

Nothing else!

When web browser has finished loading

Code:
Dim ID As String
ID = My.Computer.FileSystem.ReadAllText("ID.txt") 'Get data from the txt
Dim passWord As String
passWord = My.Computer.FileSystem.ReadAllText("password.txt")

SendKeys.Send(ID) 'Send ID

SendKeys.Send("{TAB}") 'Send TabDown

SendKeys.Send(passWord) 'Send password



And that should be it.

P.S Give me the site, and I'll make it for you if you don't get it.


ok i get it now, but......

this is what i do

make 2 file

ID.txt
PASS.txt

change the "password.txt" to PASS.txt

paste the code into the web browser

and then i try it, all it does is take me to the site
Back to top
View user's profile Send private message
Frostbyt3
Master Cheater
Reputation: 0

Joined: 07 Jan 2008
Posts: 323
Location: Australia

PostPosted: Fri Aug 29, 2008 8:31 pm    Post subject: Reply with quote

Just posted a working one.

There is a delay after finsihed loading, edit the timer1 properties to fix that.


Last edited by Frostbyt3 on Fri Aug 29, 2008 8:33 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites