Skip to content

Commit

Permalink
~ fixed a bug when an error was returned if icoPath contained path in…
Browse files Browse the repository at this point in the history
…side double qoutation marks. Now that path gets normalized.

+ added a screenshot.
  • Loading branch information
Drugoy committed Apr 24, 2016
1 parent 6158a61 commit 1fb21fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Meta Shortcut/Meta Shortcut.ahk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Meta Shortcut
Version: 8
Last time modified: 2016.04.24 23:32
Version: 9
Last time modified: 2016.04.25 00:36
Summary: a single file that can store multiple shortcuts and provides access to them via dropdown menu.
Expand Down Expand Up @@ -62,9 +62,10 @@ If (%0% == 0) ; User wanted to access the already stored shortcuts.
Else ; There's no path to the icon stored in the registry (example is .pdf being handled by "SumatraPDF portable")
{
RegRead, icoPath, HKCR, %temp%\shell\open\command
thisIconLibPath := chopString(icoPath, """", 2) ; Might be unreliable. Usually the path is like '"C:\path\to\file.exe" "%1"'
thisIconNumberInLib := 1
}
If InStr(thisIconLibPath, """")
thisIconLibPath := chopString(icoPath, """", 2) ; Might be unreliable. Usually the path is like '"C:\path\to\file.exe" "%1"' or just '"C:\path\to\file.exe"' and it has to be normalized for further use.
Menu, ShortcutsList, Icon, %A_Index%. %singleRecordPart1%, %thisIconLibPath%, %thisIconNumberInLib%
}
paths.Insert(A_Index ". " singleRecordPart1, singleRecordPart2) ; Here we do bindings (using array) so we'll know later what to run.
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Make rules to move files automatically. Use it to make a rule that moves files f
##### [Meta Shortcut](Meta Shortcut)
An improved version of "[Icon Menu Launcher](Icon Menu Launcher)" script.
Shows a list of menuitems: if you click any of them - they act as shortcuts to the files previously drag'n'dropped onto it. The script supports drag'n'drop of multiple files at once.
[icon](https://i.imgur.com/n6GH8gX.png)

##### [MiddleClickInstantScroll](MiddleClickInstantScroll)
Middle click on an arbitrary position on scrollbar to instantly scroll to that position.
Expand Down

0 comments on commit 1fb21fd

Please sign in to comment.