Search found 23 matches

by galaxy_far_FAR_away
Fri 04 Aug, 2017 08:01
Forum: Macro Commands Discussions
Topic: How to call mf.usermenu from Disks menu
Replies: 2
Views: 12726

How to call mf.usermenu from Disks menu

mf.postmacto works well ;)

mf.postmacro works even better :)

Many thanks for enlighten me!
by galaxy_far_FAR_away
Thu 03 Aug, 2017 21:13
Forum: Macro Commands Discussions
Topic: How to call mf.usermenu from Disks menu
Replies: 2
Views: 12726

How to call mf.usermenu from Disks menu

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...
by galaxy_far_FAR_away
Sun 11 Dec, 2016 15:26
Forum: Support and Troubleshooting
Topic: Overriding CtrlWinUp/CtrlWinDown
Replies: 1
Views: 12015

Overriding CtrlWinUp/CtrlWinDown

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 ...
by galaxy_far_FAR_away
Sun 03 Apr, 2016 18:12
Forum: Support and Troubleshooting
Topic: PPIF_SELECTED
Replies: 1
Views: 10580

PPIF_SELECTED

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...
by galaxy_far_FAR_away
Fri 12 Feb, 2016 18:58
Forum: Macro Commands Discussions
Topic: win.system() - call app with more than 1 quotation mark pairs
Replies: 6
Views: 14605

win.system() - call app with more than 1 quotation mark pairs

Ahh, sorry cmd.exe, I missed that Your qutation was from John Doe and not from me :)

OK, I seeing that [[...]] works but I can't understand _why_ plain escape characters are bad?

The answer maybe too complex as Shmuel indicated here: http://forum.farmanager.com/viewtopic.p ... 06#p131106
by galaxy_far_FAR_away
Fri 12 Feb, 2016 13:27
Forum: Macro Commands Discussions
Topic: win.system() - call app with more than 1 quotation mark pairs
Replies: 6
Views: 14605

win.system() - call app with more than 1 quotation mark pairs

For win.system() see Encyclopedia/luafar_manual.chm in the FAR Manager program folder! macroapi_manual.en.chm is also about LUA.

No example codes are needed - just paste my example lines to FAR commandline then press Enter.
by galaxy_far_FAR_away
Fri 12 Feb, 2016 09:57
Forum: Macro Commands Discussions
Topic: win.system() - call app with more than 1 quotation mark pairs
Replies: 6
Views: 14605

win.system() - call app with more than 1 quotation mark pairs

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...
by galaxy_far_FAR_away
Sat 06 Feb, 2016 23:52
Forum: Macro Commands Discussions
Topic: Distinct capitals for macros (or testing Shift key)
Replies: 4
Views: 13954

Distinct capitals for macros (or testing Shift key)

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...
by galaxy_far_FAR_away
Sat 06 Feb, 2016 12:11
Forum: Macro Commands Discussions
Topic: Distinct capitals for macros (or testing Shift key)
Replies: 4
Views: 13954

Distinct capitals for macros (or testing Shift 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...
by galaxy_far_FAR_away
Thu 15 Oct, 2015 05:30
Forum: Macro Commands Discussions
Topic: Correct 'swap panels' with LUA (solved)
Replies: 7
Views: 18116

Correct swap panels with LUA

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(&...
by galaxy_far_FAR_away
Wed 14 Oct, 2015 19:51
Forum: Macro Commands Discussions
Topic: Correct 'swap panels' with LUA (solved)
Replies: 7
Views: 18116

Correct swap panels with LUA

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...
by galaxy_far_FAR_away
Wed 14 Oct, 2015 19:23
Forum: Macro Commands Discussions
Topic: Correct 'swap panels' with LUA (solved)
Replies: 7
Views: 18116

Correct swap panels with LUA

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 (?)
by galaxy_far_FAR_away
Wed 14 Oct, 2015 19:08
Forum: Macro Commands Discussions
Topic: Correct 'swap panels' with LUA (solved)
Replies: 7
Views: 18116

Correct 'swap panels' with LUA (solved)

[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...
by galaxy_far_FAR_away
Fri 25 Sep, 2015 11:00
Forum: Suggestions and Ideas
Topic: [SOLVED] y-sort (read full info in 1st post)
Replies: 15
Views: 28277

[SOLVED] y-sort (read full info in 1st post)

Many thanxxxxxxxxxxxxxxxxxx! :)
by galaxy_far_FAR_away
Thu 24 Sep, 2015 20:33
Forum: Suggestions and Ideas
Topic: [SOLVED] y-sort (read full info in 1st post)
Replies: 15
Views: 28277

[SOLVED] y-sort (read full info in 1st post)

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...

Go to advanced search