FirefoxGet&;从Delphi更改url
有没有一种方法可以在Firefox中键入当前url,然后根据replay更改该文本。FirefoxGet&;从Delphi更改url,delphi,url,firefox,Delphi,Url,Firefox,有没有一种方法可以在Firefox中键入当前url,然后根据replay更改该文本。 我可以找到用DDEClient打开的url,但我不知道如何更改它?许多年前,我这样使用它(只是一个片段): 您指的是DDE客户端Spyglass SDI接口吗?如果是的话,你试过WWW_OpenURL命令吗?是的,我用过,但还没有试过,直到现在都不知道。如何使用它?有关SDI接口,请参见 ... DdeClientConv:=TDdeClientConv.Create(nil); try
我可以找到用DDEClient打开的url,但我不知道如何更改它?许多年前,我这样使用它(只是一个片段):
您指的是DDE客户端Spyglass SDI接口吗?如果是的话,你试过WWW_OpenURL命令吗?是的,我用过,但还没有试过,直到现在都不知道。如何使用它?有关SDI接口,请参见
...
DdeClientConv:=TDdeClientConv.Create(nil);
try with DdeClientConv do
begin
if SetLink(Browser, 'WWW_OpenURL') then
begin
PCH := RequestData(Format('"%s",,%d',[AURL,0]));
if Assigned(PCH) then
begin
PD := PDWORDS(PCH);
if PD^[0]=dword(-3) then
ShellExecute(GetDesktopWindow(),'Open',PChar(AURL),nil,nil,SW_SHOWNORMAL);
StrDispose(PCH);
end;
end
else
ShellExecute(GetDesktopWindow(),'Open',PChar(AURL),nil,nil,SW_SHOWNORMAL)
end;
finally
DdeClientConv.Free;
end;
...