Page 1 of 1

Bookmark-macro with "[LR]CtrlShift0" in Editor doesn't work

Posted: Thu 22 Jan, 2015 07:05
by farman
This macro replaces the original keys "set/goto bookmark" in Editor. Everything works fine except set bookmark with "[LR]CtrlShift0" which does nothing. Goto Bookmark with "[LR]Ctrl0" works. Any Ideas? Maybe a national (german) keyboard problem again?

Code: Select all

Macro { description="Set Bookmark in Editor with (RCtrlShift, LCtrlShift)";
        area="Editor Viewer"; key="/[LR]CtrlShift[0-9]/"; flags="";
        action = function()    Keys('CtrlShift' .. akey(1):sub(-1))    end; }

Macro { description="Goto Bookmark in Editor with (RCtrl, LCtrl)";
        area="Editor Viewer"; key="/[LR]Ctrl[0-9]/"; flags="";
        action = function()    Keys('Ctrl' .. akey(1):sub(-1))    end; }

Bookmark-macro with "[LR]CtrlShift0" in Editor doesn't work

Posted: Thu 22 Jan, 2015 07:20
by Shmuel
1. The above macros work for me.
2. Try to insert far.Message(akey(1)) in the action of the first macro to see if it is called.
3. Try flags="NoSendKeysToPlugins";

Bookmark-macro with "[LR]CtrlShift0" in Editor doesn't work

Posted: Thu 22 Jan, 2015 07:43
by farman
Thanks for your advice, Shmuel. Here are the results:
- Macro isn't called (2).
- Flag doesn't change anything.
Macro was tested in a clean FAR.

Bookmark-macro with "[LR]CtrlShift0" in Editor doesn't work

Posted: Thu 22 Jan, 2015 07:51
by Shmuel
farman wrote: Macro isn't called
I hope you reloaded either macros or Far before testing the modified macros?

Bookmark-macro with "[LR]CtrlShift0" in Editor doesn't work

Posted: Thu 22 Jan, 2015 08:15
by Shmuel
farman, you can test the names of keys and key combinations as follows:
1. Press Ctrl.Ctrl.
2. Press some key (e.g. CtrlShift3) - you should be able to see its name in the dialog field

Repeat (2) as many times as needed with various keys.

Bookmark-macro with "[LR]CtrlShift0" in Editor doesn't work

Posted: Thu 22 Jan, 2015 08:25
by farman
Every key Combination on "0" is working except "[LR]CtrlShift0".
Restarted Far, restarted PC, several PC...

Bookmark-macro with "[LR]CtrlShift0" in Editor doesn't work

Posted: Thu 22 Jan, 2015 08:29
by farman
The keycombination was working well for a long time, but some far-versions ago it stopped.

Bookmark-macro with "[LR]CtrlShift0" in Editor doesn't work

Posted: Thu 22 Jan, 2015 08:41
by Shmuel
You mean CtrlShift0 stopped working?
As it does work for me with the latest Far build I can not test when it "stopped working". It is your responsibility: http://farmanager.com/nightly.php

Bookmark-macro with "[LR]CtrlShift0" in Editor doesn't work

Posted: Thu 22 Jan, 2015 08:50
by DrKnS
Try this.

Bookmark-macro with "[LR]CtrlShift0" in Editor doesn't work

Posted: Thu 22 Jan, 2015 08:59
by farman
Oh, crazy. Maybe a Windows bug? I've changed keyboard/region settings to test for national keyboard-problems and now, after switching back to german, the keycombination is working again. This doesn't really make any sense since the problem exists on several PCs. I will test that on the other PCs too...

UPDATE: Reserved key for switching language in several windows version. Thanks , DrKnS.