|
Another possibility is GetDlgItemTextA. I believe there are also other API used for fetching the text from a dialogbox. I'm reviewing some other material and if I come up with some others, I'll edit this post.
Also be aware that there are secondary API to both these API calls, designed for 16 bit programs. The, of course are:
GetWindowText
GetDlgItemText
and, of course the other 32 bit API are
GetWindowTextW
GetDlgItemTextW
and well it is less likely they are being used in a current version of a program, which sounds remarkedly like one of the chemistry programs with online database and such, one can always make a quick and painless check.
So you could cover all bases with:
:bpx GetWindowText
:bpx GetWindowTexta
:bpx GetWindowTextw
:bpx GetDlgItemText
:bpx GetDlgItemTexta
:bpx GetDlgItemTextw
And there is also:
GetDlgItemInt
Translates the text of a specified control in a dialog box into an integer value
Here's a handy API reference regarding these issues:
http://www.nikse.dk/win32api.html
Regards,
__________________
JMI
|