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")

posted on 2014-06-10 14:41  jenney.qiu  阅读(381)  评论(0编辑  收藏  举报