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 


c++ text parsing

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

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Thu Jan 24, 2008 10:04 pm    Post subject: c++ text parsing Reply with quote

Ok so say i have a .blank file and i want my c++ program to open it , parse it, close it.

How would i go about parsing a file. So say i wanted ^ to store win in a buffer, how would i go about that.

I want to make a basic bot scripting language in C++ and need to figure out text parsing.

_________________
Back to top
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Thu Jan 24, 2008 10:23 pm    Post subject: Reply with quote

You're being too vague.
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Fri Jan 25, 2008 5:55 am    Post subject: Reply with quote

text parse. What's so vague about that. I want to have a file. I want to pass that file through my program and interpret the symbols in the file for different commands and functions.

so maybe ^300, 36 would be a Message to click at 300, 36.

I'm trying my best to clear it up here.


Remember what you said before appalsap? When i released my AC?

Edit:

Ok so say i have a file that simply read * 300 400

Would i put that line in a buffer and put the first char through a switch for the symbol.

if(buf[0] == *)
{
//parse the buffer until a space
//put those numbers in an int
//repeat for both numbers
//Post the message for clicking
}

little psuedo type thingy

_________________
Back to top
View user's profile Send private message
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