I Like to make a Disks MenuItem which calls a user-menu ("Network.ini") - see attachment. If I call mf.usermenu from a keyboard macro then user-menu displayed fine. If I call mf.usermenu from Disks menu then this message appears (line numbers don't matters): C:\Prg\Windows\FAR\Plugins\LuaM...
I like to do something by CtrlWinUp/CtrlWinDown but action not called (both panel's height adjusted instead): Macro { key = 'CtrlWinUp'; area = 'Shell'; flags = 'EmptyCommandLine'; action = function() msgbox ("Up!"); end; } As I remember, maybe this worked a while ago because I wrote this ...
I like to test which item selected in a FAR panel. These fragments are always true for me: if (band(tonumber(current_file.Flags), far.Flags.PPIF_SELECTED))... if (band(current_file.Flags, far.Flags.PPIF_SELECTED))... if (bit64.band(tonumber(current_file.Flags), far.Flags.PPIF_SELECTED))... if (bit64...
These works (either part of the command-line is quoted): lua:win.system("\"C:\\Program Files\\Windows NT\\Accessories\\wordpad.exe\" C:\\Windows\\win.ini") lua:win.system("C:\\PROGRA~1\\WINDOW~2\\ACCESS~1\\wordpad.exe \"C:\\Windows\\win.ini\"") I think this al...
Both capital tests works, I have chosen the "match" variant (it is terrible why I not learn LUA entirely :( I should do...) Under "Elegant way to bring up Fast Find" I meant a function call to open that input field. Now I faced another problem: it is a way to do "Macro { key...
I want to use Fast Find function (which is mapped to Alt+Key by default) by pressing Shift+Key. I tried "Macro { key="A"; ..." but that is activated by small 'a' too. 1a.) So, I like to know how can I test Shift key status? 1b.) ...or how to use a Unicode function to test if a ch...
Ahh, the fixed code also much cleaner ;) Thanks to you guys, here is the final snippet for everybody (I using Shift-Tab to swap panels): Macro { key = 'ShiftTab'; area = 'Shell'; flags = ''; description= 'Panel: Swap panels'; action = function() local awidth, aleft = APanel.Width, APanel.Left Keys(&...
Nice - Shmuel You done Your answer before I could send mine (a short one) :D OK, I did tested this key-emulation technique and it is not flashing, it is real-time. I will implement height adjustment too (and fix a minor bug because 'divider' moves a bit at every swap if total width is odd). Many tha...
Thanks HaRT, I wrote the same idea just with other words
So, I not as experimented as You may think - I dug in the documentations of LUA/FAR plugins (quite) some time ago and I not really found where I can figure out panel's dimensions (?)
[Update: working snippet is at a few post below] 1.) Ctrl-U swaps panels well even if they contains plugin content. But it swaps whole panels with their _dimensions_ too (width, height) which is not good for me (I using asymmetric panels because of good reasons) 2.) I made a script which swaps panel...
Today I changed my PC radically: after years of 32 bit I installed a fresh 64 bit Win7 and downloaded latest FAR (build 4425 x64). Seems like after these changes Y-Sort doesn't work. "Sort-modes.lua:249: bad argument #1 to 'band' (number expected, got cdata)" I'm absolutely noob in LUA, bu...