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 usage

 
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: Mon Feb 01, 2010 5:35 am    Post subject: Textout usage Reply with quote

WIN2 is a HDC.
Code:
textout(WIN2,431,233,'lalalalalalalalalalalalalalal',29);


Y i get E2066 Missing operator or semicolon error?
I dun think delphi recognize textout?
Is it cos I forget add the needed uses?
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Mon Feb 01, 2010 2:49 pm    Post subject: Reply with quote

TextOut() ?
Back to top
View user's profile Send private message
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Mon Feb 01, 2010 2:58 pm    Post subject: Reply with quote

Slugsnack wrote:
TextOut() ?


He said Delphi, and as for what i can see in the CE source, thats not case sensitive
Back to top
View user's profile Send private message
tanjiajun_34
Grandmaster Cheater
Reputation: 0

Joined: 16 Feb 2006
Posts: 786
Location: Singapore

PostPosted: Mon Feb 01, 2010 8:13 pm    Post subject: Reply with quote

I tested on a exe project on delphi it works.
But on a dll no.
All the uses in the exe project already inside the list of uses on the dll 1.
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Fri Feb 05, 2010 7:41 pm    Post subject: Reply with quote

There isn't a error with your textout code, its with the previous line before that line. Your probably missing a semicolan in the previous line.
Back to top
View user's profile Send private message MSN Messenger
tanjiajun_34
Grandmaster Cheater
Reputation: 0

Joined: 16 Feb 2006
Posts: 786
Location: Singapore

PostPosted: Wed Feb 24, 2010 11:24 pm    Post subject: Reply with quote

I dun spot any error?
Code:
procedure TForm1.textoutTimer(Sender: TObject);
var
Key : Word;
Modifiers: UINT;
WIN1:hwnd;
WIN2:hdc;
begin
if winm=0 then
begin
ShortCutToHotKey(HotKey14.HotKey, Key, Modifiers);
if odd (GetAsyncKeyState(key)) then
begin
WIN1 := FindWindowA(nil,'WindowName');
 if WIN1 <>0 then
  begin
WIN2:=GetDC(WIN1);
textout(WIN2,431,233,'lalalalalalalalalalalalalalal',29);
  end;
ReleaseDC(WIN1,WIN2);
InvalidateRect(WIN1,nil,false);
RedrawWindow(WIN1,nil,0,RDW_ERASE);
UpdateWindow(WIN1);
end;
end;

end;


Edit:Solved. It seems TextOutW works.... Weird...
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