Page 1 of 1

Macro not working :(

Posted: 25 Nov 2023 10:39
by MBaas
I have a problem with a very basic macro and I can't see what I'm doing wrong:
::focus "PI";text <get "path" i>;goto <get "path" i>;focus "PI";
The idea if to set the path of the inactive pane to the path of the active pane. (Maybe there's a more direct approach?) Anyway - the text command shows the correct oath, but then goto doesn't go - so the inactive panel (which was actived before) doesn't change path,

Re: Macro not working :(

Posted: 25 Nov 2023 10:50
by highend
::$a=<curpath>;focus "PI";goto $a;focus "PI";

Re: Macro not working :(

Posted: 25 Nov 2023 13:37
by MBaas
Thanks - that works!

Except...when I add it to a Hamburg menu like this:
|>Go &here in other pane|$a=<curpath>;focus "PI";goto $a;focus "PI";

Re: Macro not working :(

Posted: 25 Nov 2023 14:06
by klownboy
This can be done even easier with command ID, #810, followed by focus "pi".

#810 is "Go here in other pane" but it does not focus the other pane, so the focus is still necessary.

Code: Select all

::#810;focus "pi";

Re: Macro not working :(

Posted: 25 Nov 2023 14:16
by MBaas
That's neat! And actually - the focus switching I did was because I did not wa nt to change focus (I wanted focus to stay on the original tab), so a simple #810; is just perfect for this case! (I hadn't realized this existed! :masked: )
And that is certainly also doable in the Hamburger menu :appl:
:tup: