jenney-qiu

读取默认浏览器

此处用autoit脚本语言获取本机默认浏览器Progid,打开http或https的URL,打开一个.htm或.html文件

;Open a default http or https url
Local $Open_http_URL = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice", "Progid")
Local $Open_https_URL = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice", "Progid")

;Open a .htm or .html file
Local $Open_htm_File = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.htm\UserChoice", "Progid")
Local $Open_html_File = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice", "Progid")

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-05
  • 2021-07-01
  • 2021-11-22
  • 2021-08-27
  • 2022-01-07
相关资源
相似解决方案