pin_plunder
asked on
get IE link
I want a text box in my application to be able to receive IE links and display it's text and url.
is there any way to do this?
thanks
is there any way to do this?
thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can also use DDE:
var
IeClient : TDdeClientConv;
p : PChar;
begin
IeClient := TDdeClientConv.Create (nil);
try
with IeClient do
begin
SetLink ('IEXPLORE', 'WWW_GetWindowInfo');
p := RequestData ('0xFFFFFFFF');
// p is your URL, etc.... do whatever you want with it...
StrDispose (p);
CloseLink;
end;
finally
IeClient.Free;
end;
end;
var
IeClient : TDdeClientConv;
p : PChar;
begin
IeClient := TDdeClientConv.Create (nil);
try
with IeClient do
begin
SetLink ('IEXPLORE', 'WWW_GetWindowInfo');
p := RequestData ('0xFFFFFFFF');
// p is your URL, etc.... do whatever you want with it...
StrDispose (p);
CloseLink;
end;
finally
IeClient.Free;
end;
end;
ASKER
mnasman your code worked all right, but I've got some simple questions about it:
1) how do you know the Internet Explorer Class is called "IEFrame"
2) how can I do the same with Netscape
the points are already yours but first please explain me these things.
many thanks.
1) how do you know the Internet Explorer Class is called "IEFrame"
2) how can I do the same with Netscape
the points are already yours but first please explain me these things.
many thanks.
Hello pin_plunder
for the first question, if you are run winsight that come with delphi, it will show u all the running processes, and you will find that the IE have the class {IEFrame}, so from there you can know these things.
for second question, Honestly I havn't tried that with netscape, I havn't used it from long time, but if I have a free time, I will install it and try that
Mohammed
for the first question, if you are run winsight that come with delphi, it will show u all the running processes, and you will find that the IE have the class {IEFrame}, so from there you can know these things.
for second question, Honestly I havn't tried that with netscape, I havn't used it from long time, but if I have a free time, I will install it and try that
Mohammed
ASKER
thank you. ahh!, thanks to your last comments it was possible to me to do the same with netscape.
THANKS.
THANKS.
That's great, you are welcome any time :o)
Mohammed
Mohammed
Alex