diff --git a/F4MiniMenu.ahk b/F4MiniMenu.ahk index 91755c0..8d5d0be 100644 --- a/F4MiniMenu.ahk +++ b/F4MiniMenu.ahk @@ -1,9 +1,9 @@ /* Script : F4MiniMenu.ahk for Total Commander - AutoHotkey 1.1+ (Ansi and Unicode) -Version : v1.2 +Version : v1.3 Author : hi5 -Last update : 02 April 2023 +Last update : 21 November 2023 Purpose : Minimalistic clone of the F4 Menu program for Total Commander (open selected files in editor(s)) Source : https://github.com/hi5/F4MiniMenu @@ -11,6 +11,7 @@ Note : ; % used to resolve syntax highlighting feature bug of N++ */ +#Requires AutoHotkey v1.1.31+ #SingleInstance, Force #UseHook #NoEnv @@ -19,10 +20,10 @@ SetWorkingDir, %A_ScriptDir% SetTitleMatchMode, 2 ; Setup variables, menu, hotkeys etc -F4Version:="v1.2" +F4Version:="v1.3" ; -;@Ahk2Exe-SetFileVersion 1.2 +;@Ahk2Exe-SetFileVersion 1.3 ;@Ahk2Exe-SetDescription F4MiniMenu: Open files from TC ;@Ahk2Exe-SetCopyright MIT License - (c) https://github.com/hi5 ; @@ -641,9 +642,9 @@ GetInput(byref parameters, byref file, byref startdir, byref execute, program) if InStr(parameters,"%o") parameters:=StrReplace(parameters,"%o",GetTCFields("%o",file)) if InStr(parameters,"%n") - parameters:=StrReplace(parameters,"%o",GetTCFields("%n",file)) + parameters:=StrReplace(parameters,"%n",GetTCFields("%n",file)) if InStr(parameters,"%m") - parameters:=StrReplace(parameters,"%o",GetTCFields("%m",file)) + parameters:=StrReplace(parameters,"%m",GetTCFields("%m",file)) if InStr(parameters,"%$date") { DateTimeObject:=GetTCFields(parameters) diff --git a/F4TCIE.ahk b/F4TCIE.ahk index ee4814c..a583f41 100644 --- a/F4TCIE.ahk +++ b/F4TCIE.ahk @@ -23,12 +23,13 @@ Templates : Create a DocumentTemplates\ folder and place files for each templa */ +#Requires AutoHotkey v1.1.31+ #NoTrayIcon #NoEnv ; ;@Ahk2Exe-SetDescription F4MiniMenu (IE): Open files from TC -;@Ahk2Exe-SetFileVersion 1.2 +;@Ahk2Exe-SetFileVersion 1.3 ;@Ahk2Exe-SetCopyright MIT License - (c) https://github.com/hi5 ; diff --git a/changelog.md b/changelog.md index 274a2ae..c1dd52f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,10 @@ ## Changelog -* 20231121 - v1.2 +* 20231121 - v1.3 + a) Fix: `%N` and `%M` now processed correctly + b) Added "#Requires AutoHotkey v1.1.31+" directive for users with v1 & v2 installed, added note in documention about using v1 AutoHotkey.exe in setup + +* 20231030 - v1.2 a) Updated class name for Find Results control class (TMyListBox2, 32bit) for TC11 b) Added: Help MsgBox-es in Settings Gui now Task Modal (32+8192=8224) c) Added: Settings label to Gui to better handle closing the Gui https://github.com/hi5/F4MiniMenu/issues/24#issuecomment-1573127847 diff --git a/readme.md b/readme.md index e263d6c..8423c9b 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# F4MiniMenu - v1.2 +# F4MiniMenu - v1.3 A F4 Menu program for [Total Commander](http://www.ghisler.com/) to open selected file(s) in editor(s). (and experimental/rudimentary support for Windows Explorer, Double Commander, XYPlorer, and Everything - only [when activated](#other-programs)). @@ -13,7 +13,7 @@ It is a *standalone* program which runs separatly from Total Commander. See Gett b. Matching Editors based on extension (filtered menu) * Various methods to open selected files: "[regular](#normal)", "[Drag & Drop](#drag-drop)", [Filelist](#filelist), [cmdline](#cmdline) * Document Templates to create new files for file types other than "text" - [DocumentTemplates README](DocumentTemplates/readme.md) -* Open source - written in [AutoHotkey](https://www.autohotkey.com/) +* Open source - written in [AutoHotkey](https://www.autohotkey.com/) (v1.1) ## Discussion @@ -104,13 +104,13 @@ Once F4MiniMenu is started, the Global settings and new editors with a variety o * Menu - Position of Menu - Accelerator key for full menu when using the filtered menu - - Show menu or Edit file directly when using the filtered menu + - Show Menu or Edit file directly when using the filtered menu * Files (Maximum number of files to be opened, will ask for confirmation if more are selected) * WinWait -- see below * Total Commander - - TC Start + - TC Start (Start Total Commander when F4MM is started, or not) - TC Path - - Close F4MM options + - Close F4MM options (Exit F4MM when Total Commander closes) * Hotkeys - Background - Foreground menu @@ -331,6 +331,23 @@ To configure Total Commander to use F4TCIE.ahk: TC, Configuration, Edit/View, Editor (ini): drive:\path-to\F4TCIEi.ahk "%1" +Note: if both AutoHotkey v1.1 and v2 are installed you may receive an error message (from the AutoHotkey launcher). +In that case include the full path of the AutoHotkey v1.1 executable before the drive:\path-to\F4TCIE.ahk like so: + + TC, Configuration, Edit/View, Editor: + c:\program files\autohotkey\autohotkey.exe drive:\path-to\F4TCIE.ahk "%1" + +Tip: To use %PROCESSOR_ARCHITECTURE% + +Rename + + F4TCIE-64i.exe -> F4TCIE-amd64i.exe + F4TCIE-32i.exe -> F4TCIE-x86i.exe + +then use + + drive:\path-to\F4TCIE-%PROCESSOR_ARCHITECTURE%.exe "%1" + If for some reason the configuration can not be opened, an attempt is made to start the editor for the file type associated in Windows (so for txt -> notepad, for bmp,jpg -> MS Paint etc). When there is no editor for the file type found `notepad.exe` is started.