Toon posts:

[delphi] GetTextFrom Handle --> Password field

Pagina: 1
Acties:
  • 63 views sinds 30-01-2008

Verwijderd

Topicstarter
Hallo allen,

Ik probeer een applicatie te schrijven die text vanuit edit velden verkrijgt. Dit lukt aardig. Ik heb de volgende code al geschreven:

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
var
  hWnd: THandle;
  aName,
  Text :  array [0..255] of char;
begin
  hWnd := WindowFromPoint(CrPos);
  Label1.Caption := 'Handle :  ' + IntToStr(hWnd);

  if boolean(GetClassName(hWnd, aName, 256)) then
    Label2.Caption := 'ClassName :  ' + string(aName)
  else
    Label2.Caption := 'ClassName :  not found';
  SendMessage(hWnd, WM_GETTEXT,
              SizeOf(Text), integer(@Text));
  Label3.Caption := 'Text :' + Text;
end;


Het probleem is echter dat ik ook van password velden te text wil verkrijgen. Is er iemand die weet wat ik hiervoor moet gebruiken ipv WM_GETTEXT?

Alvast bedankt

  • curry684
  • Registratie: Juni 2000
  • Laatst online: 13-08 16:46

curry684

left part of the evil twins

Afbeeldingslocatie: http://crew.tweakers.net/curry/rtfm.png

Professionele website nodig?


  • curry684
  • Registratie: Juni 2000
  • Laatst online: 13-08 16:46

curry684

left part of the evil twins

Oh ja en mocht je de Borland online help niet duidelijk genoeg vinden staat al deze informatie ook overduidelijk op MSDN Library Online. Enjoy :)

Professionele website nodig?


Dit topic is gesloten.