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 


Searching/Scanning

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Apr 04, 2008 7:05 pm    Post subject: Searching/Scanning Reply with quote

How would you scan a .txt file?

For example, If I went to notepad, than I made a file saying "Hello", how would I code a program so that when I type in the the textbox "Hello" and click find, it will look for the word.

Exactly like the Ctrl+F function on any web-browser.

I'm thinking using the System.IO namespace?

StreamReader or something like that? Help me code it please - using VB.net

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Apr 04, 2008 8:28 pm    Post subject: Reply with quote

TextBox1.Text.IndexOf

I'm pretty sure is what you're looking for. TextBox1 obviously being the name of your TextBox control.

http://msdn2.microsoft.com/en-us/library/system.string.indexof.aspx

and yes, you'd use StreamReader to read the file.
Back to top
View user's profile Send private message
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Fri Apr 04, 2008 9:14 pm    Post subject: Reply with quote

slovach wrote:
TextBox1.Text.IndexOf

I'm pretty sure is what you're looking for. TextBox1 obviously being the name of your TextBox control.

http://msdn2.microsoft.com/en-us/library/system.string.indexof.aspx

and yes, you'd use StreamReader to read the file.


Ahh.. im confused. Rolling Eyes
I wanna search something that I create. Like a notepad .txt file.

I'm basically trying to create something like the CTRL + F when your lookin for a word. But im trying to create my own so I can learn a little bit about scanning and searching. Eventually in the summer ill make a public GOOD variable scanner.. Shocked

_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Apr 04, 2008 10:08 pm    Post subject: Reply with quote

I figured you were just trying to mimic notepad or something, still... :

http://msdn2.microsoft.com/en-us/library/system.io.streamreader.readtoend.aspx

+

http://msdn2.microsoft.com/en-us/library/system.string.indexof.aspx

should accomplish what you're looking to do.
Back to top
View user's profile Send private message
MaximuS
I post too much
Reputation: 3

Joined: 05 Apr 2007
Posts: 3212
Location: ......

PostPosted: Fri Apr 04, 2008 10:33 pm    Post subject: Reply with quote

Rofl.... Searching for vars in a txt file is not a good var scanner

The only good is
Variable Explorer,Atlas,Flash Variable Editor, Other Var scanner i dnt wanna mention
Back to top
View user's profile Send private message MSN Messenger
123456789987654321
I post too much
Reputation: 0

Joined: 10 Oct 2007
Posts: 3341
Location: The Bat Cave :D

PostPosted: Fri Apr 04, 2008 10:54 pm    Post subject: Reply with quote

maximuS wrote:
Rofl.... Searching for vars in a txt file is not a good var scanner

The only good is
Variable Explorer,Atlas,Flash Variable Editor, Other Var scanner i dnt wanna mention

wats the other one you dont want to mention, I would like to know which one it is

_________________
Back to top
View user's profile Send private message MSN Messenger
MaximuS
I post too much
Reputation: 3

Joined: 05 Apr 2007
Posts: 3212
Location: ......

PostPosted: Fri Apr 04, 2008 11:17 pm    Post subject: Reply with quote

The other one i dont want to mention is as powerful as VE but a little big slower a very tiny bit
Back to top
View user's profile Send private message MSN Messenger
AndrewMan
Grandmaster Cheater Supreme
Reputation: 0

Joined: 01 Aug 2007
Posts: 1257

PostPosted: Sat Apr 05, 2008 8:57 am    Post subject: Reply with quote

maximuS wrote:
The other one i dont want to mention is as powerful as VE but a little big slower a very tiny bit


Wouldn't you just use the GetVariable for scanning for variables in flash? Than just have it display the variable if it finds it in a TextBox or somethin.. Rolling Eyes

And @ Slov, doesnt StreamReader just create a .txt file than open it up?

_________________
Back to top
View user's profile Send private message
123456789987654321
I post too much
Reputation: 0

Joined: 10 Oct 2007
Posts: 3341
Location: The Bat Cave :D

PostPosted: Sat Apr 05, 2008 9:04 am    Post subject: Reply with quote

maximuS wrote:
The other one i dont want to mention is as powerful as VE but a little big slower a very tiny bit

you can pm me or xfire

_________________
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
Page 1 of 1

 
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