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 


appending to an edit

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Aug 27, 2008 1:06 pm    Post subject: appending to an edit Reply with quote

I was wondering how you can append text to an editbox without copying the text in the edit box and then appending to that and then setting the text.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Wed Aug 27, 2008 1:52 pm    Post subject: Reply with quote

confusing statement but ok. is this what you mean?

TextBoxText , This text is in text box and you want it to be something like
TextBoxTextasdfas , and you don't want to actually get the text from step 1 and then add to it? You want to directly add the suffix to it?

The easiest way would be the way you said you don't want. Get the text from textbox, lstrcat, and then set the text either by message or SetDlgItemText

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

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Aug 27, 2008 1:58 pm    Post subject: Reply with quote

Ok Confused And \r\n makes a newline?
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Wed Aug 27, 2008 1:59 pm    Post subject: Reply with quote

you can use the += operator to add to a textbox in managed C++.

\r\n will do, but \n will also (I think)
Back to top
View user's profile Send private message Send e-mail
Overload
Master Cheater
Reputation: 0

Joined: 08 Feb 2008
Posts: 293

PostPosted: Wed Aug 27, 2008 3:08 pm    Post subject: Reply with quote

\n makes a new line. Forget what \r does.
_________________
Blog

Quote:
Rhys says:
you can be my maid
Rhys says:
ill buy you a french maid outfit
Tyler says:
Sounds good
Rhys says:
ill hold you to that
Back to top
View user's profile Send private message MSN Messenger
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Wed Aug 27, 2008 3:16 pm    Post subject: Reply with quote

\r is a Carriage Return. It basically returns the text cursor thing (|) all the way to the left. It basically means its the end of the line.
_________________
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Aug 27, 2008 6:23 pm    Post subject: Reply with quote

Well I heard someone said to use \r\n to make a newline. But when I used to only use \n it just gave me a null character (you know the box). Will \r\n make any differences or just give me two null characters (two boxes).
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Wed Aug 27, 2008 6:24 pm    Post subject: Reply with quote

oib111 wrote:
Well I heard someone said to use \r\n to make a newline. But when I used to only use \n it just gave me a null character (you know the box). Will \r\n make any differences or just give me two null characters (two boxes).


Why don't you try it out.

Edit: Sorry, my fault, you do need \r\n
Back to top
View user's profile Send private message Send e-mail
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Wed Aug 27, 2008 7:17 pm    Post subject: Reply with quote

Thank you x0r so much Very Happy
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger 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