Author Topic: Help with Soarer's Converter w/ Model F AT  (Read 1916 times)

0 Members and 1 Guest are viewing this topic.

Offline Chromako

  • Thread Starter
  • Posts: 65
  • Worshipper of the Topre and IBM Gods
Help with Soarer's Converter w/ Model F AT
« on: Thu, 05 February 2015, 05:55:08 »
Thanks in advance for helping!


I'm using a modified (ANSI mod with added modifiers on each side of the spacebar) model F AT with my mac, and I'm running into a bit of trouble with Soarer's converter (I'm not an experienced programmer and the documentation has me stumped). Right now, I have this loaded:


Code: [Select]
ifset set2
remapblock
   FAKE_02         LALT   # extra pad lhs of space
   FAKE_04         RALT   # extra pad rhs of space
   FAKE_06         BACKSLASH   # extra pad top of enter
   CAPS_LOCK      RCTRL
   LALT         CAPS_LOCK
   PAD_PLUS      PAD_ENTER
   PAD_MINUS      PAD_PLUS
   PAD_ASTERIX      PAD_MINUS
   EXTRA_SYSRQ      PAD_ASTERIX
   SCROLL_LOCK      PAD_SLASH


endblock


The problem is that I can't use the navigation keys embedded in the numpad as Mac OS doesn't' support toggling the num lock key (grr). I'd like to emulate this function in Soarer's converter. What I'd like is to press, say, LShift+LAlt+NumLock and have it load a new configuration that gives me the navigation keys in the numpad. Ideally, pressing that combo again would load the original remap. Here's the new remap:
Code: [Select]
ifset set2
remapblock
   FAKE_02         LALT   # extra pad lhs of space
   FAKE_04         RALT   # extra pad rhs of space
   FAKE_06         BACKSLASH   # extra pad top of enter
   CAPS_LOCK      RCTRL
   LALT         CAPS_LOCK
   PAD_PLUS      PAD_ENTER

   #The following essentially disable num lock so we can have a navigation cluster on Macintosh computers
   PAD_0      INSERT
   PAD_1      END
   PAD_2      DOWN
   PAD_3      PAGE_DOWN
   PAD_4      LEFT
   PAD_5      UNASSIGNED
   PAD_6      RIGHT
   PAD_7      HOME
   PAD_8      UP
   PAD_9      PAGE_UP
   PAD_SLASH      UNASSIGNED
   PAD_PERIOD      DELETE
   PAD_MINUS      UNASSIGNED
   PAD_ASTERIX      UNASSIGNED
   SCROLL_LOCK      UNASSIGNED
   EXTRA_SYSRQ         UNASSIGNED


endblock
How would I go about doing this? Again, thanks so much for helping!
Thou Shalt Not Violate Causality, Nor Shalt Thou Invert Thy Spacebar.

Offline Chromako

  • Thread Starter
  • Posts: 65
  • Worshipper of the Topre and IBM Gods
Re: Help with Soarer's Converter w/ Model F AT
« Reply #1 on: Sun, 15 February 2015, 23:40:14 »
I figured it out!  :)


I've included the code below in case anyone is interested.



Code: [Select]
# at_f_remaps_modded
ifset set2
remapblock
   FAKE_02         LALT   # extra pad lhs of space
   FAKE_04         RALT   # extra pad rhs of space
   FAKE_05         EUROPE_1   # extra pad lhs of enter
   FAKE_06         BACKSLASH   # extra pad top of enter
   FAKE_07         F11         # extra pad lhs of insert
   CAPS_LOCK      RCTRL
   #LCTRL         CAPS_LOCK
   LALT         CAPS_LOCK
   #INTERNATIONAL_2   EUROPE_2   # extra pad rhs of left shift
   #INTERNATIONAL_1   F13      # extra pad lhs of right shift
   #F11      F14               # extra pad bottom of numpad +


   #Numpad Modifications
   PAD_PLUS      PAD_ENTER
   #PAD_MINUS      PAD_PLUS
   PAD_MINUS      UNASSIGNED
   #PAD_ASTERIX      PAD_MINUS
   PAD_ASTERIX      UNASSIGNED
   #EXTRA_SYSRQ      PAD_ASTERIX
   EXTRA_SYSRQ      UNASSIGNED
   #SCROLL_LOCK      PAD_SLASH
   SCROLL_LOCK      UNASSIGNED


   #The following essentially disable numlock so we can have navigation on Macintosh computers
   PAD_0      INSERT
   PAD_1      END
   PAD_2      DOWN
   PAD_3      PAGE_DOWN
   PAD_4      LEFT
   PAD_5      UNASSIGNED
   PAD_6      RIGHT
   PAD_7      HOME
   PAD_8      UP
   PAD_9      PAGE_UP
   PAD_PERIOD      DELETE


endblock


#Toggle Numpad behavior by pressing Numlock + LCtrl + LShift
ifselect 1
remapblock


   FAKE_02         LALT   # extra pad lhs of space
   FAKE_04         RALT   # extra pad rhs of space
   FAKE_05         EUROPE_1   # extra pad lhs of enter
   FAKE_06         BACKSLASH   # extra pad top of enter
   FAKE_07         F11         # extra pad lhs of insert
   CAPS_LOCK      RCTRL
   LALT         CAPS_LOCK


   #Numpad Modifications
   PAD_PLUS      PAD_ENTER
   PAD_MINUS      PAD_PLUS
   PAD_ASTERIX      PAD_MINUS
   EXTRA_SYSRQ      PAD_ASTERIX
   SCROLL_LOCK      PAD_SLASH




   #Restores numpad numbers
   PAD_0      PAD_0
   PAD_1      PAD_1
   PAD_2      PAD_2
   PAD_3      PAD_3
   PAD_4      PAD_4
   PAD_5      PAD_5
   PAD_6      PAD_6
   PAD_7      PAD_7
   PAD_8      PAD_8
   PAD_9      PAD_9
   PAD_PERIOD      PAD_PERIOD


endblock


ifselect any
macroblock


macro NUM_LOCK LCTRL LSHIFT
   PRESS SELECT_1
endmacro


endblock



Thou Shalt Not Violate Causality, Nor Shalt Thou Invert Thy Spacebar.