uses ShellAPI,Registry;

var
  reg: TRegistry;
  s: String;
begin
  reg := TRegistry.Create;
  reg.RootKey := HKEY_CLASSES_ROOT;
  reg.OpenKey('HTTP\Shell\open\command',False);
  s := reg.ReadString('');//读取注册表的值 如:"D:\Program Files\Maxthon3\Bin\Maxthon.exe" "%1"
  s := Copy(s,Pos('"',s)+1,Length(s));//提取路径信息
  s := Copy(s,1,Pos('"',s)-1);
  ShellExecute(application.handle, 'open',PChar(s), PChar('http://www.ccqgn.com'), nil,sw_shownormal);//指定打开网页
end;
 

 

 

相关文章:

  • 2022-02-06
  • 2022-01-22
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2021-11-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案