Alternative F5, F6, F8

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

Alternative F5, F6, F8

Postby Joco1114 » Mon 27 Jul, 2009 14:50

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

Re: Alternative F5, F6, F8

Postby Centaur » Mon 27 Jul, 2009 15:48

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: 1204
Joined: Fri 01 Apr, 2005 14:03
Contact:

Re: Alternative F5, F6, F8

Postby Andrey Budko » Mon 27 Jul, 2009 15:54

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

Postby Joco1114 » Mon 27 Jul, 2009 15:58

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

Joc

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

Re: Alternative F5, F6, F8

Postby Andrey Budko » Mon 27 Jul, 2009 15:59

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

BCopy\macros\BGcopy.cmd F5


Return to “Macro Commands Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests