Skip to content

Commit a16464f

Browse files
authored
Update HyperSearch.ahk
Added Export Category function Fixed Firefox default browser support
1 parent 74dda93 commit a16464f

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

HyperSearch.ahk

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ CoordMode, Mouse ; , Screen
1111

1212
;;;;;USE DEFAULT BROWSER;;;;;
1313
RegRead, ProgID, HKEY_CURRENT_USER, Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice, Progid
14-
Browser := "iexplore.exe"
14+
Browser := "msedge.exe"
1515
if (ProgID = "ChromeHTML")
1616
Browser := "chrome.exe"
17-
if (ProgID = "FirefoxURL")
17+
if (ProgID ~= "FirefoxURL.*")
1818
Browser := "firefox.exe"
1919
if (ProgID = "BraveHTML")
2020
Browser := "brave.exe"
@@ -432,6 +432,9 @@ ButtonSubmit:
432432
GoSub, LoadRepo
433433
GoSub, DestroyGui
434434
GoSub, LoadGui
435+
} else if (UsrIn ~= "i)^export>cat.{0,5}") {
436+
GoSub, ExportCat
437+
GoSub, DestroyGui
435438
} else if (UsrIn ~= ".*\+.*"){
436439
GuiControl, -redraw, Link
437440
GoSub, AppendLinks
@@ -753,6 +756,18 @@ UpdateLinkList:
753756
GoSub, SaveHSR
754757
return
755758

759+
ExportCat:
760+
Gui, Submit, noHide
761+
Loop % linkArray.MaxIndex() {
762+
if (linkArray[A_Index,1] != "" && linkArray[A_Index,1] != " ")
763+
addLink .= linkArray[A_Index,1] . "," . linkArray[A_Index,2] . "`n"
764+
else
765+
addLink .= "`n"
766+
}
767+
;MsgBox % index . "`n" . addLink
768+
FileAppend, %addLink%, %index%.csv
769+
return
770+
756771
FavButtonClick:
757772
FavButton(A_ThisMenuItemPos)
758773
Return

0 commit comments

Comments
 (0)