🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #2993

Re: Get text from a (external program's) Edit Control under Mouse Cursor

#2993
From: JasperP
Date: Tue, 05 Sep 2006 16:28
25 lines
1998 bytes
Alan Bellingham wrote:
> I rather hope you can't - because if you can, it means that there really
> is no security in Windows.

Then I have to disapoint you about this; many of these small tools already 
exist and work. A MaskEdit control is just as easily read as a Edit control. 
With GetWindowText I can get the masked text out of a couple of programs, 
but not all.

Strangly enough a program written in VB (I have the source of this simple 
and small program), uses gettext(hWindow) and gets the masked text out of 
almost all programs.

> An alternate solution - and no, I've not even thought about trying this
> - would be to watch for new windows appearing with the ES_PASSWORD
> attribute. When one does, you could pop up your window instead for the
> user to type into, and then send the result off to the original.
>
> (I assume that WM_SETTEXT would still work.)

I don't wish to intercept information. It is intended to just be a retrieval 
tool.

Jasper 
Technical Details
Message-ID: <44fda596@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44fd99f3$1@newsgroups.borland.com> <8v7rf25uai1ldlmu12psopd6oscoa4rtdv@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,32b21842bccb2a83
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "JasperP" <NoSpam@SpamCop.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44fd99f3$1@newsgroups.borland.com> <8v7rf25uai1ldlmu12psopd6oscoa4rtdv@4ax.com>
Subject: Re: Get text from a (external program's) Edit Control under Mouse Cursor
Date: Tue, 5 Sep 2006 18:28:10 +0200
Lines: 27
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: <44fda596@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1157473686 83.117.52.16 (5 Sep 2006 09:28:06 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail