jplindstrom has asked for the wisdom of the Perl Monks concerning the following question:
So, I'm trying to get the text of the hwnd that contains the URL (I know wich one).
So, Win32::GUI::Text() doesn't work.
So, I can't use the Win32::API call to GetWindowText, because "This function cannot retrieve the text of an edit control in another application.". VB examples I've found use SendMessage to do this.
So, I'd like to send the WM_GETTEXT message to the window and have it fill a buffer with the text.
These are the parameters:
WM_GETTEXT wParam = (WPARAM) cchTextMax; // number of characters to copy lParam = (LPARAM) lpszText; // address of buffer for text
So, I'd like to get the address of a Perl scalar to send as the second parameter. Everything works but this last part.
Can I do that?
Do I have to enter Inline::C and XS land to do that, or is there a nifty module available? (haven't found any on CPAN, possibly because I don't know what to look for)
If you can short circuit the problem, so much the better :)
/J
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting the actuall address of a scalar
by diotalevi (Canon) on Sep 30, 2002 at 23:59 UTC | |
by jplindstrom (Monsignor) on Oct 01, 2002 at 07:32 UTC | |
|
Re: Getting the actuall address of a scalar
by BrowserUk (Patriarch) on Oct 01, 2002 at 00:24 UTC | |
|
Re: Getting the actual address of a scalar
by boo_radley (Parson) on Oct 01, 2002 at 03:47 UTC | |
|
Re: Getting the actuall address of a scalar
by hossman (Prior) on Sep 30, 2002 at 23:06 UTC |