can someone help me with a soarers converter remap

Alectardy98

19 Jun 2020, 13:18

i am getting an error at line 42 and I don't know why?
Attachments
Desktop.rar
(268.14 KiB) Downloaded 25 times

User avatar
sharktastica

20 Jun 2020, 00:39

"Function keys are defined by remapping one or more keys to pseudo-HID codes FN1 to FN8"
- Soarer's documentation

Basically, you can't directly say you want NUM_LOCK or SCROLL_LOCK to be a layer key - you have to remap them to FNx (1 to 8) beforehand.
So, first add something like:

Code: Select all

remapblock
    NUM_LOCK		FN2
    SCROLL_LOCK         FN3 
endblock
Then:

Code: Select all

layerblock
    FN1		1
    FN2		2
    FN3		3 
endblock

Alectardy98

23 Jun 2020, 20:19

thank you, but I don't think that I was informed enough to even ask the correct question, I am trying to make scroll lock and num lock act as toggles and display with the lock lights. I believe that I have to use the

ifselect

command but I don't think that I am currently doing to correctly

I am trying to make a layout that works like this
Image

Code: Select all

# Alec's AT layout

remapblock
    CAPS_LOCK   RCTRL
    F1          ESC
    F2          FN1
    F3          F13
    F4          F14
    F5          F15
    F6          F16
    F7          F17
    F8          F18
    LALT        LCTRL
    EXTRA_LALT	LALT
    EXTRA_RALT	RALT
    LCTRL       LGUI
    BACKSLASH   UNASSIGNED
    EXTRA_BACKSLASH     BACKSLASH
        ESC             DELETE
	NUM_LOCK	CAPS_LOCK
	SCROLL_LOCK	NUM_LOCK
        EXTRA_SYSRQ     SCROLL_LOCK
	PAD_7           PRINTSCREEN
	PAD_8           PAUSE
	PAD_9           INSERT
	PAD_ASTERIX	HOME
	PAD_4           MEDIA_MUTE	
	PAD_5           MEDIA_VOLUME_DOWN
	PAD_6           MEDIA_VOLUME_UP
	PAD_MINUS	END
	PAD_1           PAGE_UP
	PAD_2           UP
	PAD_3           PAGE_DOWN
	PAD_PLUS	PAD_ENTER
        EXTRA_INSERT    LEFT
        PAD_0           DOWN
        PAD_PERIOD      RIGHT
endblock

layerblock
    FN1                 1 
endblock

remapblock
layer 1
endblock

ifselect 1
remapblock
    1    F1
    2    F2
    3    F3
    4    F4
    5    F5
    6    F6
    7    F7
    8    F8
    9    F9
    0    F10
	PAD_7       PAD_7
	PAD_8       PAD_8
	PAD_9       PAD_9
	PAD_ASTERIX	PAD_MINUS	
	PAD_4       PAD_4
	PAD_5       PAD_5
	PAD_6       PAD_6
	PAD_MINUS	PAD_PLUS
	PAD_1       PAD_1
	PAD_2       PAD_2
	PAD_3       PAD_3
        EXTRA_INSERT    PAD_0
        PAD_0           PAD_0
        PAD_PERIOD      PAD_PERIOD
endblock

ifselect any
remapblock 
    NUM_LOCK    SELECT_1
endblock

ifselect 2
remapblock
    F3          F19
    F4          F20
    F5          F21
    F6          F22
    F7          F23
    F8          F24
endblock

ifselect any
remapblock 
    SCROLL_LOCK SELECT_2
endblock

macroblock

# F9 = control-LGUI-LEFT(for Windows Previous Desktop)
  macro F9
    PUSH_META CLEAR_META all
    SET_META LGUI LCTRL
    PRESS LEFT
    POP_ALL_META
  endmacro


# F10 = control-LGUI-Right(for Windows Next Desktop)
  macro F10
    PUSH_META CLEAR_META all
    SET_META LGUI LCTRL
    PRESS RIGHT
    POP_ALL_META
  endmacro
endblock

I can seam to make the lock lights toggle

User avatar
sharktastica

24 Jun 2020, 18:14

Sorry, I have no idea how to make that work. The moment you remap SCROLL_LOCK to SELECT_2, for example, you lose the ability for that key to do anything with the lights. IIRC, the lock lights are controlled by commands coming from the computer (which was one of the defining differences between XT and AT), thus the computer needs to see the scancodes from the lock keys in order to toggle the lights.

Post Reply

Return to “Workshop”