mirror of
https://github.com/Priler/jarvis.git
synced 2026-05-26 07:08:11 +00:00
14 lines
677 B
AutoHotkey
14 lines
677 B
AutoHotkey
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
|
|
; #Warn ; Enable warnings to assist with detecting common errors.
|
|
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
|
|
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
|
|
|
|
RegRead, BrowserKeyName, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.html\UserChoice, Progid
|
|
RegRead, BrowserFullCommand, HKEY_CLASSES_ROOT, %BrowserKeyName%\shell\open\command
|
|
StringGetPos, pos, BrowserFullCommand, ",,1
|
|
pos := --pos
|
|
StringMid, BrowserPathandEXE, BrowserFullCommand, 2, %pos%
|
|
Run, % BrowserPathandEXE
|
|
|
|
|