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++] macro formula?

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

Joined: 17 Dec 2006
Posts: 786

PostPosted: Thu Dec 25, 2008 10:17 am    Post subject: [C++] macro formula? Reply with quote

Whats the macro formula? is it

Code:
 lines = split(richTextBox1.text, "\n");
foreach(line in lines)
 {
  if(line = "command")
   {
     function();
   }
  }


or what?

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu Dec 25, 2008 10:35 am    Post subject: Reply with quote

The algorithm you use totally depends on the way you want to do it.
_________________
Back to top
View user's profile Send private message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Thu Dec 25, 2008 10:38 am    Post subject: Reply with quote

I want to split a richtextbox into lines and then search for commands and split the line that the command is on by whatever, like " " or "," or whatever.
_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu Dec 25, 2008 10:46 am    Post subject: Reply with quote

So split each line like that by Line new line feed bytes.
In each line search for a keyword, when u find it, split the string (after the command) for comma bytes and use those for w/e.

_________________
Back to top
View user's profile Send private message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Thu Dec 25, 2008 10:48 am    Post subject: Reply with quote

I knew that, just not how .... D: its the holidays man
_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
smartz993
I post too much
Reputation: 2

Joined: 20 Jun 2006
Posts: 2013
Location: USA

PostPosted: Thu Dec 25, 2008 10:57 am    Post subject: Reply with quote

ElectroFusion wrote:
I knew that, just not how .... D: its the holidays man


Didn't meg already send you a snippet to split up your richtextbox and loop through the lines?
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Thu Dec 25, 2008 11:03 am    Post subject: Reply with quote

ElectroFusion wrote:
I knew that, just not how .... D: its the holidays man


No excuse. Go learn. Google. Search. Make an effort.

_________________
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