Article View: borland.public.cppbuilder.nativeapi
Article #2991Get text from a (external program's) Edit Control under Mouse Cursor
From: JasperP
Date: Tue, 05 Sep 2006 15:38
Date: Tue, 05 Sep 2006 15:38
31 lines
1637 bytes
1637 bytes
I'm trying to create a small tool whereby users can retrieve their passwords. So read a masked password from eg. Outlook. How can I manage this? I remember this was just a simple gettext(hWindow) in VB. -------------------------------------------------- POINT pt; GetCursorPos(&pt) HWND hWindow; char cBuffer[255]; hWindow = WindowFromPoint(pt); // this gets the text of a few controls, but not all Edit Controls GetWindowText(hWindow, cBuffer, sizeof(cBuffer)); // can't get this to work.. SendMessage(hWindow, EM_GETLINE ,0 , (long)cBuffer); EditResult->Text = .... -------------------------------------------------- Help would really be appreciated! Jasper
Technical Details
Message-ID:
<44fd99f3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,32b21842bccb2a83,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "JasperP" <Spam@SpamCop.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Get text from a (external program's) Edit Control under Mouse Cursor Date: Tue, 5 Sep 2006 17:38:31 +0200 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 83.117.52.16 Message-ID: <44fd99f3$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1157470707 83.117.52.16 (5 Sep 2006 08:38:27 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail