Forward key to FAR before Macro lookup

Here you can discuss any topic concerning Far macro commands.
Post Reply
rattle
Posts: 6
Joined: Sat 02 Sep, 2017 18:58

Forward key to FAR before Macro lookup

Post by rattle » Thu 05 Oct, 2017 15:10

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: 5227
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 16 times
Been thanked: 151 times

Forward key to FAR before Macro lookup

Post by Shmuel » Thu 05 Oct, 2017 15:49

See mf.eval in the documentation.
Example: if mf.eval(some_key, 2) == -2 then Keys(some_key) end

rattle
Posts: 6
Joined: Sat 02 Sep, 2017 18:58

Forward key to FAR before Macro lookup

Post by rattle » Thu 05 Oct, 2017 17:37

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”