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
In reply to Getting the actual address of a scalar by jplindstrom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |