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 


Textout help

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

Joined: 16 Feb 2006
Posts: 786
Location: Singapore

PostPosted: Sun Jul 05, 2009 9:35 am    Post subject: Textout help Reply with quote

Code:

procedure TForm1.Timer1Timer(Sender: TObject);
var
MS:hwnd;
MS2:hdc;
begin
MS := FindWindowA('MSClass', nil);
 if MS <>0 then
  begin
MS2:=GetDC(MS);
if Checkbox1.Checked=true then
begin
textout(MS2,431,233,'Auto Escape from people: True',29);
  end
  else
  begin
textout(MS2,431,233,'Auto Escape from people: False',30);
  end;
ReleaseDC(MS,MS2);
InvalidateRect(MS,nil,false);
RedrawWindow(MS,nil,0,RDW_ERASE);
UpdateWindow(MS);
  end;
end;


The timer1 is enabled and set interval 1.
The textout box work before.
When I enable Checkbox1, The "Auto Escape from people: false" turns into "Auto Escape from people: True". After changing I cannot run the new msg. I only sometimes see it blink and disappear.

Edited: Solved. Thanks for been so good to come in and view wad to help. Thank you.
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