Is it possible to find out whether a textbox currently has the users focus? If so how can my application grab the text out of it.
(I am not trying to make a password sniffer, just add spellchecking facilty to programs such as notepad.)
Printable View
Is it possible to find out whether a textbox currently has the users focus? If so how can my application grab the text out of it.
(I am not trying to make a password sniffer, just add spellchecking facilty to programs such as notepad.)
I have a program that uncovers the * and turns them to the actual password you can have if you want
I'm not sure but you might also want to try posting this in the API forum.
You do something like the following:
The TextBox must be visible or the above throws an error.Code:If Screen.ActiveControl.Name = "MyTextBox" Then
MsgBox "I've got the fucus"
End If
That works ok for a textbox in my application. I need to be able to get text from whatever the active window is though. e.g. Notepad
I am digging through the API archives to see if I can find anything there... I reckon this is possible but maybe a little too tricky for me
Oh! That's a whole different story. You do that via the GetWindowText API call. Do a search of this site for examples.
psyvision hey send me the source to that one thing you said which show you what really behind the *
k, but i'll need your mail address
I would like it too!
[email protected]