Alternative F5, F6, F8

Here you can discuss any topic concerning Far macro commands.
Post Reply
Joco1114
Posts: 23
Joined: Thu 23 Jul, 2009 13:39

Alternative F5, F6, F8

Post by Joco1114 »

I would like to switch the build-in F5, F6 and F8 to Background Copy commands. (F11-b-1, 2 and 3)
The problem: I would like to use these macros only in Shell mode, not in archive mode.
Here is my solution, that isnt work! :)
REGEDIT4

[-HKEY_CURRENT_USER\Software\Far2\KeyMacros\Shell\F5]
[HKEY_CURRENT_USER\Software\Far2\KeyMacros\Shell\F5]
"Description"="Copy with Background Copy"
"Sequence"="$If(Shell) F11 b 1 $Else F5 $End"
"DisableOutput"=dword:00000001
"EmptyCommandLine"=dword:00000001
"NotEmptyCommandLine"=dword:00000000
What I need in Sequence? Can I get syntax about it?

Joc
User avatar
Centaur
Posts: 1083
Joined: Tue 05 Apr, 2005 20:09
Location: Novosibirsk, Russia
Been thanked: 2 times

Re: Alternative F5, F6, F8

Post by Centaur »

If you start macro recording with Ctrl+. and end it with Ctrl+Shift+., a macro settings dialog appears where you can specify that it should only run when neither the active nor passive panels are plugin panels.
User avatar
Andrey Budko
Posts: 1203
Joined: Fri 01 Apr, 2005 14:03
Contact:

Re: Alternative F5, F6, F8

Post by Andrey Budko »

Joco1114 wrote:The problem: I would like to use these macros only in Shell mode, not in archive mode.
[HKEY_CURRENT_USER\Software\Far2\KeyMacros\Shell\F5]
"Sequence"="F11 b 1 F5"

Background copy\Configure plugin\[x] Check destination panel type
Joco1114
Posts: 23
Joined: Thu 23 Jul, 2009 13:39

Re: Alternative F5, F6, F8

Post by Joco1114 »

I cant belive, it is so easy! Thank you friends! :)

Joc
User avatar
Andrey Budko
Posts: 1203
Joined: Fri 01 Apr, 2005 14:03
Contact:

Re: Alternative F5, F6, F8

Post by Andrey Budko »

Joco1114 wrote:I cant belive, it is so easy! Thank you friends!
BCopy\macros\BGcopy.cmd F5
Post Reply

Return to “Macro Commands Discussions”