Answer the question
In order to leave comments, you need to log in
How to get URL from Chrome-based browser in Delphi?
Good time of the day.
I have some code to find out which URL is currently open in the browser. There he is:
procedure TForm1.Button1Click(Sender: TObject);
var
Temp:WideString;
begin
DdeClientConv1.SetLink('brausername','WWW_GetWindowInfo');
Temp:=DdeClientConv1.RequestData('sUrl');
ShowMessage(Temp);
end;
procedure TForm1.Button1Click(Sender: TObject);
var
Temp,url:WideString;
begin
DdeClientConv1.SetLink('opera','WWW_GetWindowInfo');
Temp:=DdeClientConv1.RequestData('sUrl');
delete(Temp,1,pos('"',temp));
url:=copy(temp,1,pos('"',temp)-1);
ShowMessage(Url);
end;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question