-
Hello, fellow Visual Basic programmer,
I've recently more or less finished the PortScan! It's done if you ask me, I'm letting a friend testing it, so maybe I have to fix some bugs or something. But that's irrelevant.
I'm wanting to make a program which reveals the text contained by a TextBox, protected with PasswordChars (The "******" when you type in a password).
My goal is making the mouse icon a key (I know how to do that, so that's not included in my question), and when clicking a TextBox (parented by any window, not just mine only) it should retreive it's string. What I'm going to do with that, is either showing it under the mouse icon or replace the TextBox's text.
The main thing I would like to know is how to retreive. I know I firstly have to determine the TextBox's handle which is clicked, and with that handle, using API to reveal, or something near.
Why? For educational purposes. In case of suspition of illegal use, I hope it will be enough, giving my word of honour. I'm just a 15-year old (Dutch) Visual Basic programmer who's goal is gaining programming knowledge.
I'm hoping on clear explainations and/or examples. I appreciate any help.
Thank you in advance,
Quintonir
-
Actually, I need the code too. Me and Quintonir are looking for information on this. Quintonir already found an API SendMessage, using the WM_GETTEXT message. But my question: How to retreive the handle of the window (a control is also a window, so a TextBox too) which is clicked by the mouse? Or captured by the mouse? Quintonir also found an API called GetWindow, and another one which I can't recall, but they only work on windows which you created yourself, not by another program.
Anyone can help us? Or knows a sample source code?