F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: sheep, Hacker, Stefan2, white

Post Reply
hi5
Member
Member
Posts: 181
Joined: 2012-11-03, 11:35 UTC
Contact:

Post by *hi5 » 2016-02-12, 18:39 UTC

Yes, XML for the configuration file.
You would like to use INI so you can manually edit it easier?
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

hi5
Member
Member
Posts: 181
Joined: 2012-11-03, 11:35 UTC
Contact:

Post by *hi5 » 2016-02-13, 13:39 UTC

If you really want to use INI you can download an experimental version here, haven't really tested it but as I focused on loading/saving the object from and to ini only it should probably work - download the zip here and unpack:

https://github.com/hi5/F4MiniMenu/issues/5

Update Feb 15th: If you've downloaded the INI zip file from GitHub I recommend you download it again to fix two issues with reading/writing the INI (parameters and startdir were missing)
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

User avatar
Ovg
Power Member
Power Member
Posts: 614
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Post by *Ovg » 2016-06-15, 16:19 UTC

2hi5

Can't compile to exe under Windows 7 x64 SP1 - I get error:

Code: Select all

Error: Call to nonexistent function.
Specifically: XA_Load("F4MiniMenu.xmr')
Line#
— >	036: XA_Load(,'F4MiniMenu.xmГ,)
The program will exit.
Under Win7 x32 SP1 all ok. I use the latest version of ahk and you tool. Any suggestions will be appreciated.

PS. I have tried both versions of F4MiniMenu XMl and INI - still no luck
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.5 β8 x64, Windows 7 SP1 x64

hi5
Member
Member
Posts: 181
Joined: 2012-11-03, 11:35 UTC
Contact:

Post by *hi5 » 2016-06-15, 21:00 UTC

By the looks of it it seems that the file (F4MiniMenu.ahk) is not correct.

The code should be

Code: Select all

XA_Load("F4MiniMenu.xml")
and you can see in the error it says

Code: Select all

XA_Load("F4MiniMenu.xmr')
XA_Load(,'F4MiniMenu.xmГ,)
so not "F4MiniMenu.xml" but another character at the end.

OR it doesn't include XA.ahk but that would be odd.

Could be an encoding issue of the script file, should be utf-8 with BOM, do you know which version of AutoHotkey you are running?

If you have Notepad++ you can easily change the encoding to say ANSI or remote BOM and see if that helps.

User avatar
Ovg
Power Member
Power Member
Posts: 614
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Post by *Ovg » 2016-06-16, 06:23 UTC

2hi5

Thanks for suggestions, I'll check today evening (Moscow time) and I'll write you about result. Non compiled - working fine.



AHK version is v1.1.24.00 - May 22, 2016
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.5 β8 x64, Windows 7 SP1 x64

User avatar
Ovg
Power Member
Power Member
Posts: 614
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Post by *Ovg » 2016-06-16, 16:55 UTC

2hi5

Now it working.
I have added a lines into the file F4MiniMenu.ahk and it seems that compiled version works fine.

Code: Select all

#include %A_ScriptDir%\lib\class_lv_rows.ahk
#include %A_ScriptDir%\lib\DropFiles.ahk
#include %A_ScriptDir%\lib\GetPos.ahk
#include %A_ScriptDir%\lib\iob.ahk
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.5 β8 x64, Windows 7 SP1 x64

hi5
Member
Member
Posts: 181
Joined: 2012-11-03, 11:35 UTC
Contact:

Post by *hi5 » 2016-06-16, 17:16 UTC

2Ovg
thanks for reporting the missing XA from the INI version, updated that download here https://github.com/hi5/F4MiniMenu/issues/5
(can't believe I missed that :oops: )

Glad to hear it works now :D
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

User avatar
Ovg
Power Member
Power Member
Posts: 614
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Post by *Ovg » 2016-06-16, 17:31 UTC

2hi5
Sorry, it seems you didn't understand me:

Until I added these lines to the file F4MiniMenu.ahk, compiled version did not work. The presence or absence of the file XA.ahk in the distribution of INI version did not change anything. I have compiled without XA.ahk.
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.5 β8 x64, Windows 7 SP1 x64

hi5
Member
Member
Posts: 181
Joined: 2012-11-03, 11:35 UTC
Contact:

Post by *hi5 » 2016-06-16, 17:51 UTC

2Ovg
That is peculiar, how do you compile? Right click on F4MiniMenu.ahk and then compile or do you use another method.

I just tried the following on win 8.1, 64bit
- I download from here https://github.com/hi5/F4MiniMenu/archive/master.zip (you get that via the "clone or download" button)
- unpacked it to a folder
- Right click on F4MiniMenu.ahk, compile

It compiles with no errors and it works as well.

In principle AHK should automatically see the files in the LIB folder and automatically "include" them - https://autohotkey.com/docs/Functions.htm#lib

Then again adding them specifically can't hurt so I will do so just to avoid future problems. Thanks for reporting it.
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

User avatar
Ovg
Power Member
Power Member
Posts: 614
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Post by *Ovg » 2016-06-16, 18:08 UTC

Thank a lot for information!
I use portable version of AHK, and I compile via AHK2EXE ...

https://yadi.sk/i/lMrIOtrYsYpRC
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.5 β8 x64, Windows 7 SP1 x64

hi5
Member
Member
Posts: 181
Joined: 2012-11-03, 11:35 UTC
Contact:

Post by *hi5 » 2016-06-16, 18:23 UTC

That might explain it, thanks.

Edit: v0.83 and the INI zip file version now have the #include lines for the lib files as posted by Ovg above.
F4MiniMenu - Open selected file(s) from TC in defined editor(s) - A (minimalistic) clone of F4Menu
Source at GitHub (AutoHotkey) - TC Forum thread

User avatar
Ovg
Power Member
Power Member
Posts: 614
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Post by *Ovg » 2016-06-17, 19:20 UTC

2hi5

Hi! It's me again :-)

Could you please add support wildcards (? and *) in extension settings for editors?
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.5 β8 x64, Windows 7 SP1 x64

hi5
Member
Member
Posts: 181
Joined: 2012-11-03, 11:35 UTC
Contact:

Post by *hi5 » 2016-06-17, 20:17 UTC

Is this what you mean?

tx? would mean it would open files such as file.txt, file.tx1 in say Notepad

i* would open file.inc, file.ini in akelpad

User avatar
Ovg
Power Member
Power Member
Posts: 614
Joined: 2014-01-06, 16:26 UTC
Location: MOW

Post by *Ovg » 2016-06-17, 20:48 UTC

2hi5

Yes, you are absolutely right!
It's impossible to lead us astray for we don't care even to choose the way.
#259941, TC 9.5 β8 x64, Windows 7 SP1 x64

hi5
Member
Member
Posts: 181
Joined: 2012-11-03, 11:35 UTC
Contact:

Post by *hi5 » 2016-06-17, 21:12 UTC

I think that should be possible, you can download a test version here - as I only had to amend the main script it is just one file - you just copy it to your F4MiniMenu folder and start it (be sure to close F4MiniMenu if you have it running first) - info & test download here:
https://github.com/hi5/F4MiniMenu/issues/6

Post Reply