| View previous topic :: View next topic |
| Author |
Message |
tanjiajun_34 Grandmaster Cheater
Reputation: 0
Joined: 16 Feb 2006 Posts: 786 Location: Singapore
|
Posted: Mon Feb 01, 2010 5:35 am Post subject: Textout usage |
|
|
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 |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Mon Feb 01, 2010 2:49 pm Post subject: |
|
|
| TextOut() ?
|
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Mon Feb 01, 2010 2:58 pm Post subject: |
|
|
| Slugsnack wrote: | | TextOut() ? |
He said Delphi, and as for what i can see in the CE source, thats not case sensitive
|
|
| Back to top |
|
 |
tanjiajun_34 Grandmaster Cheater
Reputation: 0
Joined: 16 Feb 2006 Posts: 786 Location: Singapore
|
Posted: Mon Feb 01, 2010 8:13 pm Post subject: |
|
|
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 |
|
 |
iPromise Grandmaster Cheater
Reputation: -1
Joined: 27 Jun 2009 Posts: 529 Location: Canada
|
Posted: Fri Feb 05, 2010 7:41 pm Post subject: |
|
|
| 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 |
|
 |
tanjiajun_34 Grandmaster Cheater
Reputation: 0
Joined: 16 Feb 2006 Posts: 786 Location: Singapore
|
Posted: Wed Feb 24, 2010 11:24 pm Post subject: |
|
|
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 |
|
 |
|