Author Topic: Possible to reassign funtions on Poker Fn layer?  (Read 12313 times)

0 Members and 1 Guest are viewing this topic.

Offline oneproduct

  • Thread Starter
  • Posts: 859
  • Location: Montreal, Canada
  • @Ubisoft
Possible to reassign funtions on Poker Fn layer?
« on: Fri, 30 September 2011, 13:38:23 »
Never tried to do anything like this before so thought I'd ask to see if I could gather some information quickly from those who might already know while I search for solutions on my own.

Is it possible to reassign the functions on the Fn layer of the poker to other arbitrary key positions? I imagine it's PCB or controller related so I'm not too hopeful about this.

So if not that, is it possible to reassign the functions on the Fn layer among other key positions that also have a Fn layer key? For example, would it be possible to switch Home (Fn + [) and Task (Fn + ;)?

I use both Windows and Ubuntu so suggestions for either OS would be welcome. I'll likely take a peek at Autohotkey and... xword was it? Heard a few people mention these but in both cases it was just for top level buttons, not Fn layer so not sure if it behaves the same.

Thanks for any advice.
« Last Edit: Fri, 30 September 2011, 14:01:59 by oneproduct »
Layout: Colemak
Fastest typing speed: 131 WPM on typeracer, 136 WPM on 10fastfingers.
Daily driver: Filco Tenkeyless MX Brown with ergonomically weighted, lubed springs.
Ergo keyboards: Truly Ergonomic, Kinesis Advantage, Ergodox

Offline pyro

  • Posts: 177
Possible to reassign funtions on Poker Fn layer?
« Reply #1 on: Fri, 30 September 2011, 14:23:49 »
No.*

*Basically, Fn changes key state inside the keyboard. To change them, you'd have to be able to program the keyboard controller. As for switching keys inside the Fn-Layer, it is possible, but Task is a custom Hotkey (I think it actually triggers a key-combination). You'd have to find out wich and remap said combo to home. Good luck with Xmodmap.
« Last Edit: Fri, 30 September 2011, 14:41:34 by pyro »

Offline insilica

  • Posts: 259
  • Location: GCHQ
  • Keyboard Geeza
Possible to reassign funtions on Poker Fn layer?
« Reply #2 on: Fri, 30 September 2011, 15:01:34 »
Quote from: pyro;424180
No.*

*Basically, Fn changes key state inside the keyboard. To change them, you'd have to be able to program the keyboard controller. As for switching keys inside the Fn-Layer, it is possible, but Task is a custom Hotkey (I think it actually triggers a key-combination). You'd have to find out wich and remap said combo to home. Good luck with Xmodmap.

is this supposed to be a stealthy response? :)
FreeBSD :: Gentoo :: Arch :: [Project Roswell] :: U2410 Eyefinity :: WC P280 :: 3930K [C2] (4.5GHz)
ASUS Maximus IV :: 64GB Vengeance :: MSI 7970 xFire ::  Seasonic 1KW :: M4 256GB

REALFORCE 87U Silent (Variable) | Filco Majestouch 2 Ninja TKL (Brown) | FC660C

Offline beve

  • Posts: 3
Possible to reassign funtions on Poker Fn layer?
« Reply #3 on: Fri, 30 September 2011, 18:08:48 »
Hmm and is it possible to move the Fn key in other place ?
I think not but maybe a dip switch is present ..
It's weird, for US International alt gr (alt on the right of the spacebar) is really needed and is replaced by Fn on the Poker.

Offline Deverica Wolf

  • Posts: 185
  • Location: Rhode Island
  • My name is Hack, Geek Hack.
    • Head-Fi
Possible to reassign funtions on Poker Fn layer?
« Reply #4 on: Fri, 30 September 2011, 18:13:47 »
Quote from: pyro;424180
No.*

*Basically, Fn changes key state inside the keyboard. To change them, you'd have to be able to program the keyboard controller. As for switching keys inside the Fn-Layer, it is possible, but Task is a custom Hotkey (I think it actually triggers a key-combination). You'd have to find out wich and remap said combo to home. Good luck with Xmodmap.


My eyes...don't like you.

I wanted to do the same thing on my Deck but I can't so I lived with it.
UNICOMP.Spacesaver BS  |  FILCO Majestouch-2 TKL  |  FILCO Majestouch-2  [-_-]~ TKL  |  FILCO Majestouch-2 TKL
FILCO Majestouch-2 TKL  |  Deck Legend - ToXic  |  CHERRY Touchboard ITA

Offline theferenc

  • Posts: 1327
Possible to reassign funtions on Poker Fn layer?
« Reply #5 on: Fri, 30 September 2011, 19:51:29 »
With linux, at least, you can use xev to see what the function layer of keys returns, and then map those keycodes elsewhere. It's possible that only the marked keys have function layer versions that xev can see, though. Unfortunately, I don't have that specific keyboard to try it with. Though I can try tomorrow when I'm at work with my HHKB, which also has a function layer.

I'll let you know what I can make happen.
HHKB Pro 2 -- Custom UNIX layout Unicomp Customizer 101 -- IBM Model M 1391401 (modded to UNIX layout) -- IBM 1397000 (also UNIX layout) -- SSK in UNIX layout -- Model F 122 key in UNIX layout (Soarer USB "native")
 
CST L-TracX trackball -- Kensington Expert Mouse trackball

Offline beve

  • Posts: 3
Possible to reassign funtions on Poker Fn layer?
« Reply #6 on: Fri, 30 September 2011, 20:39:55 »
Thanks you theferenc.

I already tried to remap Fn on my Noppoo Choc Mini, but no keycode is sent when pressing the Fn key.
I use xmodmap to switch caps lock and ctrl, the HHBK of the poor man ;)

Offline theferenc

  • Posts: 1327
Possible to reassign funtions on Poker Fn layer?
« Reply #7 on: Fri, 30 September 2011, 21:51:35 »
Oh, yeah, Fn itself can't be remapped. That's hardware. But I'll try getting the function layer keys to be recognized, and see what I can muck up.
HHKB Pro 2 -- Custom UNIX layout Unicomp Customizer 101 -- IBM Model M 1391401 (modded to UNIX layout) -- IBM 1397000 (also UNIX layout) -- SSK in UNIX layout -- Model F 122 key in UNIX layout (Soarer USB "native")
 
CST L-TracX trackball -- Kensington Expert Mouse trackball

Offline sordna

  • Posts: 2249
Possible to reassign funtions on Poker Fn layer?
« Reply #8 on: Fri, 30 September 2011, 22:25:53 »
Quote from: theferenc;424356
With linux, at least, you can use xev to see what the function layer of keys returns, and then map those keycodes elsewhere. It's possible that only the marked keys have function layer versions that xev can see, though. Unfortunately, I don't have that specific keyboard to try it with.

I have a Poker, the keys that don't have an special assignment in the Fn layer, send their regular keycodes when pressed regardless if Fn is held down or not. So basically you cannot remap their Fn layer behavior (because it will mess up their regular functionality).
Kinesis Contoured Advantage & Advantage2 LF with Cherry MX Red switches / Extra keys mod / O-ring dampening mod / Dvorak layout. ErgoDox with buzzer and LED mod.
Also: Kinesis Advantage Classic, Kinesis Advantage2, Data911 TG3, Fingerworks Touchstream LP, IBM SSK (Buckling spring), Goldtouch GTU-0077 keyboard

Offline theferenc

  • Posts: 1327
Possible to reassign funtions on Poker Fn layer?
« Reply #9 on: Fri, 30 September 2011, 23:51:04 »
I was hoping that wouldn't be the case, though I assumed it likely was. I'm still curious as to what the HHKB does. Most likely the same as the Poker.

Either way though, you could still move the function layer keys around. For instance, I think it would like be possible to have an inverted T arrow arrangement on the HHKB, by swapping some of the function layer key assignments.
HHKB Pro 2 -- Custom UNIX layout Unicomp Customizer 101 -- IBM Model M 1391401 (modded to UNIX layout) -- IBM 1397000 (also UNIX layout) -- SSK in UNIX layout -- Model F 122 key in UNIX layout (Soarer USB "native")
 
CST L-TracX trackball -- Kensington Expert Mouse trackball

Offline sordna

  • Posts: 2249
3rd layer on the Poker
« Reply #10 on: Sat, 01 October 2011, 02:11:11 »
Alright, here's how I'm adding a whole extra layer on my Poker on Linux. I can momentarily activate it by holding the right Alt or Capslock, and I can even lock it in place by pushing Shift+Capslock.
The main reason I did this was to embed a numpad on this layer, so I could use mousekeys (move the pointer and do clicks from the Poker itself).

Enjoy and feel free to add other ideas and the rest of the numpad keys (I only added the ones useful for mousekeys). This should work on any recent linux setup:

Code: [Select]
#!/bin/sh -x
# Run script without arguments for a 2nd layer on the Poker,
# or with any argument to reset back to default.

setxkbmap -option
if [ "$#" -gt 0 ]; then
  setxkbmap us
  xkbset -m
  exit
fi

# Mousekeys, comment out if you want an actual numpad, or simply run
# xkbset -m / xkbset m to toggle between the two behaviors.
xkbset m # enable mousekeys
xkbset exp =m # avoid expiring mousekeys

# Choose a keymap that has an extra layer (level 3),
# add compose key (shift+ralt) and caps lock toggle by pressing both shifts:
setxkbmap 'us(altgr-intl)' -option lv3:ralt_switch_multikey,shift:both_capslock

# menu to grave/tilde:
xmodmap -e 'keycode 135 = grave asciitilde grave asciitilde'

# rwin/super to altgr:
xmodmap -e 'remove mod4 = Super_R'
xmodmap -e 'keycode 134 = ISO_Level3_Shift Multi_key'

# caps to altgr (shift+caps locks it!):
xmodmap -e 'remove Lock = Caps_Lock'
xmodmap -e 'keycode 66 = ISO_Level3_Shift ISO_Level3_Lock'

# numpad (just the keys needed for mouskeys)
xmodmap -e 'keycode 30 = u U u U KP_7 KP_Home'
xmodmap -e 'keycode 31 = i I i I KP_8 KP_Up'
xmodmap -e 'keycode 32 = o O o O KP_9 KP_Prior'
xmodmap -e 'keycode 44 = j J j J KP_4 KP_Left'
xmodmap -e 'keycode 45 = k K k K KP_5 KP_Begin'
xmodmap -e 'keycode 46 = l L l L KP_6 KP_Right'
xmodmap -e 'keycode 58 = m M m M KP_1 KP_End'
xmodmap -e 'keycode 59 = comma less comma less KP_2 KP_Down'
xmodmap -e 'keycode 60 = period greater period greater KP_3 KP_Next'
xmodmap -e 'keycode 19 = 0 parenright 0 parenright KP_0 KP_Insert'
xmodmap -e 'keycode 47 = semicolon colon semicolon colon KP_Decimal KP_Delete'
xmodmap -e 'keycode 20 = minus underscore minus underscore KP_Subtract KP_Subtract'
xmodmap -e 'keycode 61 = slash question slash question KP_Divide KP_Divide'

# that's all folks

NOTE: This will work on any keyboard, not just the Poker. Try it out and let me know how you like it!
« Last Edit: Sat, 01 October 2011, 09:14:21 by sordna »
Kinesis Contoured Advantage & Advantage2 LF with Cherry MX Red switches / Extra keys mod / O-ring dampening mod / Dvorak layout. ErgoDox with buzzer and LED mod.
Also: Kinesis Advantage Classic, Kinesis Advantage2, Data911 TG3, Fingerworks Touchstream LP, IBM SSK (Buckling spring), Goldtouch GTU-0077 keyboard

Offline hashbaz

  • Grand Ancient One
  • * Moderator Emeritus
  • Posts: 5057
  • Location: SF Bae Area
Possible to reassign funtions on Poker Fn layer?
« Reply #11 on: Sat, 01 October 2011, 02:30:26 »
Quote from: sordna;424485
Alright, here's how I'm adding a whole extra layer on my Poker on Linux. I can momentarily activate it by holding the right Alt, and I can even lock it in place by pushing shift+capslock.
The main reason I did this was to embed a numpad on this layer, so I could use mousekeys (move the pointer and do clicks from the Poker itself)

Enjoy and feel free to add other ideas and the rest of the numpad keys (I only added the ones useful for mousekeys) this should work on any recent linux setup:
...

Wow.  Might have to steal this.

Offline hasu

  • Posts: 3491
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Possible to reassign funtions on Poker Fn layer?
« Reply #12 on: Sat, 01 October 2011, 04:53:26 »
I don't know Poker.
But some Fn has its own code. At least on ThinkPad x201s it has and you will be able to remap it.
I think Fn key on HHKB has no scan code.

Offline Dox

  • Posts: 312
Possible to reassign funtions on Poker Fn layer?
« Reply #13 on: Sat, 01 October 2011, 14:41:43 »
Quote from: hasu;424508
I don't know Poker.
But some Fn has its own code. At least on ThinkPad x201s it has and you will be able to remap it.
I think Fn key on HHKB has no scan code.
You are right, the fn on the HHKB does not send scancode. BTW, the debouncing works very well with my cherry blue version of the doxkb thanks again!
ErgoDox x2 | DoxKB x2 |   IBM SSK   | HHKB pro2

Offline o2dazone

  • Posts: 953
Possible to reassign funtions on Poker Fn layer?
« Reply #14 on: Tue, 27 December 2011, 12:38:03 »
Not really sure if it goes here, but I decided to emulate a couple functions on the KBC Poker like they are on the HHKB. I made the right shift act like the function key when it comes to the arrows. I also swapped Backslash with backspace. Finally I set the escape key as ESC by default (because every time the poker is unplugged it forgets the setting). I use KeyRemap4Macbook.



Code: [Select]

<?xml version=&quot;1.0&quot;?>
<root>
  <devicevendordef>
    <vendorname>KBC</vendorname>
    <vendorid>0x04d9</vendorid>
  </devicevendordef>

  <deviceproductdef>
    <productname>Poker</productname>
    <productid>0x3113</productid>
  </deviceproductdef>

  <item>
    <name>HHKB Pro Up</name>
    <identifier>private.hhkbup</identifier>
    <device_only>DeviceVendor::KBC, DeviceProduct::Poker</device_only>
    <autogen>--KeyToKey-- KeyCode::BRACKET_LEFT, ModifierFlag::SHIFT_R, KeyCode::CURSOR_UP</autogen>
  </item>
 
  <item>
    <name>HHKB Pro Left</name>
    <identifier>private.hhkbleft</identifier>
    <device_only>DeviceVendor::KBC, DeviceProduct::Poker</device_only>
    <autogen>--KeyToKey-- KeyCode::SEMICOLON, ModifierFlag::SHIFT_R, KeyCode::CURSOR_LEFT</autogen>dddddd
  </item>
 
  <item>
    <name>HHKB Pro Right</name>
    <identifier>private.hhkbright</identifier>
    <device_only>DeviceVendor::KBC, DeviceProduct::Poker</device_only>
    <autogen>--KeyToKey-- KeyCode::QUOTE, ModifierFlag::SHIFT_R, KeyCode::CURSOR_RIGHT</autogen>
  </item>
 
  <item>
    <name>HHKB Pro Down</name>
    <identifier>private.hhkbdown</identifier>
    <device_only>DeviceVendor::KBC, DeviceProduct::Poker</device_only>
    <autogen>--KeyToKey-- KeyCode::SLASH, ModifierFlag::SHIFT_R, KeyCode::CURSOR_DOWN</autogen>
  </item>

  <item>
    <name>KBC Poker Backquote/Escape Remap</name>
    <identifier>private.pokerbackquoteesc</identifier>
    <device_only>DeviceVendor::KBC, DeviceProduct::Poker</device_only>
    <autogen>--KeyToKey-- KeyCode::BACKQUOTE, ModifierFlag::NONE, KeyCode::ESCAPE</autogen>
  </item>
 
  <item>
    <name>KBC Poker Blackslash/Delete Swap</name>
    <identifier>private.pokerbackslashdel</identifier>
    <device_only>DeviceVendor::KBC, DeviceProduct::Poker</device_only>
    <autogen>--KeyToKey-- KeyCode::BACKSLASH, KeyCode::DELETE</autogen>
    <autogen>--KeyToKey-- KeyCode::DELETE, KeyCode::BACKSLASH</autogen>
  </item>
</root>




 This goes in the private.xml, be sure to Reload XML when you've edited it, and tick the checkboxes. Also note that you will need to change the vendorid and productid in the XML file to your specific device. This will make it so that when you're not using the Poker, everything works like normal. You can find out how to get these id's
« Last Edit: Tue, 03 January 2012, 11:58:10 by o2dazone »

Offline o2dazone

  • Posts: 953
Possible to reassign funtions on Poker Fn layer?
« Reply #15 on: Tue, 27 December 2011, 13:16:37 »
After a little while with it, I could find a solution to the Task button being rebound properly (not key repeating), so I used the CONTROL_R modifier instead. Now it's Shift_R+Control_R+[;'/ to arrow around. I think this is easier for me than to use Shift_L to modify my [;'/ to {:"?

Offline hasu

  • Posts: 3491
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Possible to reassign funtions on Poker Fn layer?
« Reply #16 on: Wed, 28 December 2011, 09:40:26 »
I got two Pokers the other day and can't get used to its cursor keys, Esc.
So, I wrote this AHK script that converts Poker(or other ANSI keyboards) into HHKB layout(and also offers mouse keys).
I sacrificed right shift for Fn key without pause 'cause I've never used right shift at all.

Code: [Select]

;
; HHKB layout, Cursor and  Mouse keys
;   This script converts ANSI keyboard into HHKB.
;


;
; HHKB layout
;
; ,-----------------------------------------------------------.
; |Esc|  1|  2|  3|  4|  5|  6|  7|  8|  9|  0|  -|  =|BackSpa|
; |-----------------------------------------------------------|
; |Tab  |  Q|  W|  E|  R|  T|  Y|  U|  I|  O|  P|  [|  ]|BackS|
; |-----------------------------------------------------------|
; |Contro|  A|  S|  D|  F|  G|  H|  J|  K|  L|  ;|  '| Return |
; |-----------------------------------------------------------|
; |Shift   |  Z|  X|  C|  V|  B|  N|  M|  ,|  .|  /|          |
; |-----------------------------------------------------------|
; |Contr|Win|Alt  |         Space         |Alt  |  `|  `|    \|
; `-----------------------------------------------------------'
;
CapsLock::          Control

; ` to Esc
SC029::             Esc
RShift & SC029::    Send {Blind}{RShift up}{SC029}  ; RShift + ` => `
Esc::               `
AppsKey::           `
RWin::              `

; \ to BackSpace
\::                 BackSpace
RShift & \::        Send {Blind}{RShift up}{\}      ; RShift + \ => \
RControl::          \



;
; HHKB Fn layer: with Right Shift
;
; ,-----------------------------------------------------------.
; |  `| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|  Del  |
; |-----------------------------------------------------------|
; |Caps |   |   |   |   |   |   |   |Psc|Slk|Pus|Up |   |    \|
; |-----------------------------------------------------------|
; |Contro|VoD|VoU|Mut|   |   |  *|  /|Hom|PgU|Lef|Rig| Return |
; |-----------------------------------------------------------|
; |Shift   |   |   |   |   |   |  +|  -|End|PgD|Dow|        Fn|
; |-----------------------------------------------------------|
; |Contr|Win|Alt  |         Space         |Alt  |  `|  `|    \|
; `-----------------------------------------------------------'
;
RShift & Tab::      Send {CapsLock}
RShift & a::        Send {Volume_Down}
RShift & s::        Send {Volume_Up}
RShift & d::        Send {Volume_Mute}
RShift & [::        Send {Blind}{RShift up}{Up}
RShift & SC027::    Send {Blind}{RShift up}{Left}           ; semicolon ;
RShift & '::        Send {Blind}{RShift up}{Right}
RShift & SC035::    Send {Blind}{RShift up}{Down}           ; slash /
RShift & l::        Send {Blind}{RShift up}{PgUp}
RShift & .::        Send {Blind}{RShift up}{PgDn}
RShift & k::        Send {Blind}{RShift up}{Home}
RShift & ,::        Send {Blind}{RShift up}{End}
RShift & i::        Send {Blind}{RShift up}{PrintScreen}
RShift & o::        Send {Blind}{RShift up}{ScrollLock}
RShift & p::        Send {Blind}{RShift up}{Pause}
RShift & 1::        Send {Blind}{RShift up}{F1}
RShift & 2::        Send {Blind}{RShift up}{F2}
RShift & 3::        Send {Blind}{RShift up}{F3}
RShift & 4::        Send {Blind}{RShift up}{F4}
RShift & 5::        Send {Blind}{RShift up}{F5}
RShift & 6::        Send {Blind}{RShift up}{F6}
RShift & 7::        Send {Blind}{RShift up}{F7}
RShift & 8::        Send {Blind}{RShift up}{F8}
RShift & 9::        Send {Blind}{RShift up}{F9}
RShift & 0::        Send {Blind}{RShift up}{F10}
RShift & -::        Send {Blind}{RShift up}{F11}
RShift & =::        Send {Blind}{RShift up}{F12}
RShift & BackSpace::Send {Blind}{RShift up}{Delete}
;RShift & Esc::      DllCall(&quot;PowrProf\SetSuspendState&quot;, &quot;int&quot;, 0, &quot;int&quot;, 0, &quot;int&quot;, 0)   ; suspend(sleep)
;RShift & a::        Send {vkAEsc12E}        ; Vol Down
;RShift & s::        Send {vkAFsc130}        ; Vol Up
;RShift & d::        Send {vkADsc120}        ; Mute



;
; Cursorkeys layer: with '/'
;
; ,-----------------------------------------------------------.
; |   |   |   |   |   |   |   |   |   |   |   |   |   |       |
; |-----------------------------------------------------------|
; |     |   |   |   |   |   |Hom|PgD|PgUlEnd|   |   |   |     |
; |-----------------------------------------------------------|
; |Contro|   |   |   |   |   |Lef|Dow|Up |Rig|   |   |        |
; |-----------------------------------------------------------|
; |Shift   |   |   |   |   |   |Hom|PgD|PgUlEnd| Fn|          |
; |-----------------------------------------------------------|
; |Contr|Win|Alt  |         Space         |Alt  |   |   |     |
; `-----------------------------------------------------------'
;
*SC035:: Send {Blind}{SC035}                        ;
; cursor keys
SC035 & h:: Send {Blind}{Left}
SC035 & j:: Send {Blind}{Down}
SC035 & k:: Send {Blind}{Up}
SC035 & l:: Send {Blind}{Right}
SC035 & n:: Send {Blind}{Home}
SC035 & m:: Send {Blind}{PgDn}
SC035 & ,:: Send {Blind}{PgUp}
SC035 & .:: Send {Blind}{End}
SC035 & y:: Send {Blind}{Home}
SC035 & u:: Send {Blind}{PgDn}
SC035 & i:: Send {Blind}{PgUp}
SC035 & o:: Send {Blind}{End}



;
; Mousekeys layer: with ';'
;
; ,-----------------------------------------------------------.
; |  `| F1| F2| F3| F4| F5| F6| F7| F8| F9|F10|F11|F12|       |
; |-----------------------------------------------------------|
; |     |   |   |   |   |   |MwL|MwD|MwUlMwR|   |   |   |     |
; |-----------------------------------------------------------|
; |Contro|   |   |   |   |   |McL|McD|McU|McR| Fn|   |        |
; |-----------------------------------------------------------|
; |Shift   |   |   |   |   |   |Mb2|Mb1|   l   |   |          |
; |-----------------------------------------------------------|
; |Contr|Win|Alt  |         Mb1           |Alt  |   |   |     |
; `-----------------------------------------------------------'
; Mw: mouse wheel / Mc: mouse cursor / Mb: mouse button
;
; mouse cursor:
;   LShift:     big step
;   LControl:   small step
;
*SC027::            Send {Blind}{SC027}       ; semicolon
; mouse cursor
SC027 & h::
    if GetKeyState(&quot;LControl&quot;, &quot;P&quot;)
        MouseMove    -5, 0, 0,R
    else if GetKeyState(&quot;LShift&quot;, &quot;P&quot;)
        MouseMove    -100, 0, 0,R
    else
        MouseMove    -15, 0, 0,R
return
SC027 & j::
    if GetKeyState(&quot;LControl&quot;, &quot;P&quot;)
        MouseMove      0, 5, 0, R
    else if GetKeyState(&quot;LShift&quot;, &quot;P&quot;)
        MouseMove      0, 100, 0, R
    else
        MouseMove      0, 15, 0, R
return
SC027 & k::
    if GetKeyState(&quot;LControl&quot;, &quot;P&quot;)
        MouseMove      0, -5, 0, R
    else if GetKeyState(&quot;LShift&quot;, &quot;P&quot;)
        MouseMove      0, -100, 0, R
    else
        MouseMove      0, -15, 0, R
return
SC027 & l::
    if GetKeyState(&quot;LControl&quot;, &quot;P&quot;)
        MouseMove    5, 0, 0,R
    else if GetKeyState(&quot;LShift&quot;, &quot;P&quot;)
        MouseMove    100, 0, 0,R
    else
        MouseMove    15, 0, 0,R
return
; mouse wheel
SC027 & y::         Send {WheelLeft}
SC027 & u::         Send {WheelDown}
SC027 & i::         Send {WheelUp}
SC027 & o::         Send {WheelRight}
; mouse button
SC027 & Space::
    Send {Blind}{LButton down}
    KeyWait Space  ; Prevents repeating the mouse click.
    Send {Blind}{LButton up}
return
SC027 & m::
    Send {Blind}{LButton down}
    KeyWait m   ; Prevents repeating the mouse click.
    Send {Blind}{LButton up}
return
SC027 & n::
    Send {Blind}{RButton down}
    KeyWait n   ; Prevents repeating the mouse click.
    Send {Blind}{RButton up}
return


; Functions
SC027 & SC029:: Send {Blind}{SC029}  ; `
SC027 & 1::     Send {Blind}{F1}
SC027 & 2::     Send {Blind}{F2}
SC027 & 3::     Send {Blind}{F3}
SC027 & 4::     Send {Blind}{F4}
SC027 & 5::     Send {Blind}{F5}
SC027 & 6::     Send {Blind}{F6}
SC027 & 7::     Send {Blind}{F7}
SC027 & 8::     Send {Blind}{F8}
SC027 & 9::     Send {Blind}{F9}
SC027 & 0::     Send {Blind}{F10}
SC027 & -::     Send {Blind}{F11}
SC027 & +::     Send {Blind}{F12}

; Audio control
SC027 & a::     Send {Volume_Down}
SC027 & s::     Send {Volume_Up}
SC027 & d::     Send {Volume_Mute}

Offline o2dazone

  • Posts: 953
Possible to reassign funtions on Poker Fn layer?
« Reply #17 on: Wed, 28 December 2011, 10:57:11 »
Nice! That is slick! Yeah, I guess it's similar to mine, except I DO use my right shift, so I'm untraining my muscle memory never to reach for right shift unless its for arrowing. Will be using your AHK profile for my windows box :)

Offline forcefollow

  • Posts: 15
Possible to reassign funtions on Poker Fn layer?
« Reply #18 on: Thu, 02 February 2012, 02:48:53 »
@hasu: can the Autohotkey script you wrote use poker original Fn instead? is this even possible? i mean, I'm having my HHKB dismantled, and as a portable I have to use my poker instead, bu I miss my HHK layout.
the problem is, I do use the right shift...

so, any clues for me where to start changing the poker 2nd layer without having to install programmable controller?

fossala

  •  Guest
Possible to reassign funtions on Poker Fn layer?
« Reply #19 on: Thu, 02 February 2012, 02:51:06 »
Quote from: forcefollow;506181
@hasu: can the Autohotkey script you wrote use poker original Fn instead? is this even possible? i mean, I'm having my HHKB dismantled, and as a portable I have to use my poker instead, bu I miss my HHK layout.
the problem is, I do use the right shift...

so, any clues for me where to start changing the poker 2nd layer without having to install programmable controller?

The fn keys are on a hardware level and do not send out a keycode. If you are in/have linux open up xev and test, there will be no output.

Offline Gawkbasher

  • Posts: 220
Possible to reassign funtions on Poker Fn layer?
« Reply #20 on: Thu, 02 February 2012, 02:56:26 »
If you were really motivated, could you do this as a hardware mod?  I imagine the worst case is you'd need to cut a trace on the board for the windows key and wire the switch up to the one for the Fn key so they both send the same signal?

That sounds very not enjoyable though.
Topre Realforce 87U 45g / Logitech G9x / Razer Scarab
KBC Poker X (Blue)
/ KBC Poker X (Red)

Offline forcefollow

  • Posts: 15
Possible to reassign funtions on Poker Fn layer?
« Reply #21 on: Thu, 02 February 2012, 03:13:19 »
@fossala: that I just found out after using Autohotkey script to find keyboard scancodes

@gawkbasher:
indeed. the motivation, passion and budget I got
it's the knowledge I completely lack of.

 I'm as blind to hardware mod (i.e., electronics) as a rhino at night, or as a man with matured cataract in a nightclub

can someone here please point me to any for-dummies-like reference on electronics, especially keyboards? I'm more than willing to learn about electronics, its physiology, anatomy, and reconstruction (to put it in my terms so you'd know how much I lack such knowledge)..
thanks in advance

Offline Gawkbasher

  • Posts: 220
Possible to reassign funtions on Poker Fn layer?
« Reply #22 on: Thu, 02 February 2012, 03:26:27 »
Well, it may be more complicated than I said, but we seem to have some competent EEs around here who can fact check what I said. :)
Topre Realforce 87U 45g / Logitech G9x / Razer Scarab
KBC Poker X (Blue)
/ KBC Poker X (Red)

Offline 443330

  • Posts: 106
Possible to reassign funtions on Poker Fn layer?
« Reply #23 on: Thu, 02 February 2012, 04:05:20 »
Sorry to hijack but does anyone know why when I tried to remap my Caps lock to escape by editing the registry it did nothing?
I navigated to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Keyboard Layout
and created a binary value named Scancode Map
I then input the correct numbers in the correct format and rebooted. But it didn't change a thing :c
I was originally going to remap the FN key but found out from this thread it doesn't have a scan code.

Offline Gawkbasher

  • Posts: 220
Possible to reassign funtions on Poker Fn layer?
« Reply #24 on: Thu, 02 February 2012, 04:11:05 »
Quote from: 443330;506208
Sorry to hijack but does anyone know why when I tried to remap my Caps lock to escape by editing the registry it did nothing?
I navigated to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Keyboard Layout
and created a binary value named Scancode Map
I then input the correct numbers in the correct format and rebooted. But it didn't change a thing :c
I was originally going to remap the FN key but found out from this thread it doesn't have a scan code.

http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=22339  The better way to modify keyboard layouts in Windows.
Topre Realforce 87U 45g / Logitech G9x / Razer Scarab
KBC Poker X (Blue)
/ KBC Poker X (Red)

Offline 443330

  • Posts: 106
Possible to reassign funtions on Poker Fn layer?
« Reply #25 on: Thu, 02 February 2012, 04:14:59 »
Thanks Gawkbasher, I would prefer to do it manually though and not have a program running. Would you have any idea why the registry edit I made did not work?
I have a feeling it might be because of the tilde/esc combo but I am not sure.

EDIT: I also do not have .NET Framework 2.0 and don't play on getting it any time soon :P

Offline Gawkbasher

  • Posts: 220
Possible to reassign funtions on Poker Fn layer?
« Reply #26 on: Thu, 02 February 2012, 04:15:44 »
Quote from: 443330;506211
Thanks Gawkbasher, I would prefer to do it manually though and not have a program running. Would you have any idea why the registry edit I made did not work?
I have a feeling it might be because of the tilde/esc combo but I am not sure.

You don't have to have a program running.  You bake the layout to a file and install it as a system keyboard layout and then switch to it.
Topre Realforce 87U 45g / Logitech G9x / Razer Scarab
KBC Poker X (Blue)
/ KBC Poker X (Red)

Offline 443330

  • Posts: 106
Possible to reassign funtions on Poker Fn layer?
« Reply #27 on: Thu, 02 February 2012, 04:16:56 »
It wouldn't be possible to swap the Function key though would it? Also why did my manual registry edit not work :c

Offline Gawkbasher

  • Posts: 220
Possible to reassign funtions on Poker Fn layer?
« Reply #28 on: Thu, 02 February 2012, 04:21:01 »
If you don't have .NET Framework 2.0 (...what windows are you running?), but have .NET Framework 1.1, you can use Keyboard Layout Creator 1.3 just fine.

Also you won't be able to remap Fn keys.  Without looking at your registry I can't say for sure.
Topre Realforce 87U 45g / Logitech G9x / Razer Scarab
KBC Poker X (Blue)
/ KBC Poker X (Red)

Offline 443330

  • Posts: 106
Possible to reassign funtions on Poker Fn layer?
« Reply #29 on: Thu, 02 February 2012, 04:24:03 »
Ah ok, Ill try remapping tilde to windows and see how that goes first. What I originally tried was creating a binary value named Scancode Map in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout
then editing two parts to 01 (escapes scan code) and 3A (caps lock scan code) but this did not work.

Offline Gawkbasher

  • Posts: 220
Possible to reassign funtions on Poker Fn layer?
« Reply #30 on: Thu, 02 February 2012, 04:27:05 »
If you wanna do something more complicated and less efficient, go right ahead, I won't stop you.

o7
Topre Realforce 87U 45g / Logitech G9x / Razer Scarab
KBC Poker X (Blue)
/ KBC Poker X (Red)

Offline 443330

  • Posts: 106
Possible to reassign funtions on Poker Fn layer?
« Reply #31 on: Thu, 02 February 2012, 04:30:35 »
Hey don't be upset, I'm just one of those people who like to fuss over the small things. If I can do it manually I always prefer it.

Offline Gawkbasher

  • Posts: 220
Possible to reassign funtions on Poker Fn layer?
« Reply #32 on: Thu, 02 February 2012, 04:36:55 »
Not getting upset, just trying to separate my work (hacking on windows) from my play (talking cool things about keyboards).
Topre Realforce 87U 45g / Logitech G9x / Razer Scarab
KBC Poker X (Blue)
/ KBC Poker X (Red)

Offline 443330

  • Posts: 106
Possible to reassign funtions on Poker Fn layer?
« Reply #33 on: Thu, 02 February 2012, 04:41:13 »
Ah ok, no problem :)

Offline limmy

  • Posts: 352
Possible to reassign funtions on Poker Fn layer?
« Reply #34 on: Thu, 02 February 2012, 04:41:19 »
Thanks for the autohotkey script.

I have been using modified version of Rajagra's script. The script is pretty easy to modify and be customized in my opinion.
http://geekhack.org/showwiki.php?title=Island:10202

I think I will incorporate your mouse keys. I have a feeling that I will like them!!! Using semi-colon as Fn key is creative.

Does your modified HHKB work in the same way?

Offline o2dazone

  • Posts: 953
Possible to reassign funtions on Poker Fn layer?
« Reply #35 on: Thu, 02 February 2012, 04:52:34 »
Quote from: forcefollow;506181
@hasu: can the Autohotkey script you wrote use poker original Fn instead? is this even possible? i mean, I'm having my HHKB dismantled, and as a portable I have to use my poker instead, bu I miss my HHK layout.
the problem is, I do use the right shift...

so, any clues for me where to start changing the poker 2nd layer without having to install programmable controller?

I ran into the same issue as you. After using my HHKs for years, I didn't want to adjust to a brand new layout. I ended up making right shift my function key, and trained my muscle memory to use left shift when hitting any button combos that acted differently. It wasnt the best solution, but after about a week I got the hang of it.

Awaiting the KBC/Vortex Pure to come out, their key placement is almost identical to HHKB

Offline forcefollow

  • Posts: 15
Possible to reassign funtions on Poker Fn layer?
« Reply #36 on: Thu, 02 February 2012, 05:12:15 »
oh well, the only button left for me that resembles most of HHKB Fn is right control...
That's the apparent solution for the time being, at least until I learn how to physically remap the keys or programmiing controller
would substituting RCtrl for RShift in Hasu's script be okay for Poker?

Offline hasu

  • Posts: 3491
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Possible to reassign funtions on Poker Fn layer?
« Reply #37 on: Thu, 02 February 2012, 06:53:57 »
Quote from: limmy;506229
Thanks for the autohotkey script.

I have been using modified version of Rajagra's script. The script is pretty easy to modify and be customized in my opinion.
http://geekhack.org/showwiki.php?title=Island:10202

Yeah, Rajagra's is easily customizable. I should learn from his script and further refer to AHK reference manual to improve mine.


Quote

I think I will incorporate your mouse keys. I have a feeling that I will like them!!! Using semi-colon as Fn key is creative.

Does your modified HHKB work in the same way?


Yes! Semicolon is very useful :) This is a word I ever want to hear from others!
To use semicolon as Fn is very suitable for operation at home position, though it has some side effect.

As for mouse keys, they are almost same.
The difference is acceleration my script doesn't has it while my mod HHKB has(in primitive way).
Of course AHK can do acceleration thing but I am lazy about learning AHK scripting.


Quote from: forcefollow;506236
oh well, the only button left for me that resembles most of HHKB Fn is right control...
That's the apparent solution for the time being, at least until I learn how to physically remap the keys or programmiing controller
would substituting RCtrl for RShift in Hasu's script be okay for Poker?


I think my script can do even with right control. You should just replace all 'RShift' with 'RControl' in the script.