Forward key to FAR before Macro lookup

Here you can discuss any topic concerning Far macro commands.
Post Reply
User avatar
rattle
Posts: 23
Joined: Sat 02 Sep, 2017 18:58
Been thanked: 8 times

Forward key to FAR before Macro lookup

Post by rattle »

Dear all,
with the command

Code: Select all

Keys("AKey")
I can send the key to FAR that started the macro, but the key will be sent directly and will not trigger any other macros that I might have. Is there a way to forward the key to FAR in such a way that my user-defined hotkeys will be respected?
Thanks a lot in advance!
Shmuel
Posts: 6815
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 526 times

Forward key to FAR before Macro lookup

Post by Shmuel »

See mf.eval in the documentation.
Example: if mf.eval(some_key, 2) == -2 then Keys(some_key) end
User avatar
rattle
Posts: 23
Joined: Sat 02 Sep, 2017 18:58
Been thanked: 8 times

Forward key to FAR before Macro lookup

Post by rattle »

Hey, thanks a lot, I completely went past that one. I thought it was like lua's eval function.
Post Reply

Return to “Macro Commands Discussions”