Author Topic: hhkb pro2 layout autohotkey script  (Read 6108 times)

0 Members and 1 Guest are viewing this topic.

Offline snowblind

  • Thread Starter
  • Posts: 1
hhkb pro2 layout autohotkey script
« on: Tue, 16 July 2013, 09:22:17 »
Hey guys

just wanted to share this little ahk script i cooked up. it's essentially a script that attempts to replicate the hhkb pro2 layout on a standard keyboard. the reason for this little project is because, as much as i try, i don't always have my hhkb with me (for instance if i'm using my laptop at the coffee shop or something), and I've really grown to love the layout.

http://pastebin.com/akgL0fYD

the one big place it differs is that Win-= is backslash (\) because of one less key in my own number row than there is on the hhkbp2, and i kind of need to have the actual backslash key as my backspace

If anyone has anything similar (and / or better!) please let me know! or, of course, if you have anything to add to it (since this is suuuuuuper simple) i'd love to see what you've got!

:D

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: hhkb pro2 layout autohotkey script
« Reply #1 on: Tue, 16 July 2013, 10:26:53 »
Does it make a difference when the backspace/delete can be the backslash? I see you're saying that because there is one less key, but the truth is that additional key only serves to include the Escape key. Usually, the Escape key isn't on the number row, so the number of keys is the same minus it.

Offline esoomenona

  • Gnillort?
  • Posts: 5323
Re: hhkb pro2 layout autohotkey script
« Reply #2 on: Tue, 16 July 2013, 10:28:00 »
That being said, I used keytweak to make my changes. I changed Caps Lock to Left Control, Controls to Alts, Alts to Windows, and switched Backspace and Backslash around on my Industrial Model M.

Offline hasu

  • Posts: 3491
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: hhkb pro2 layout autohotkey script
« Reply #3 on: Wed, 17 July 2013, 08:28:10 »
Agree. If you get used to HHKB once, you are a bit frustrated on other layout.

My hhk.ahk. I don't use this for long while, so not sure it works well.
https://gist.github.com/tmk/6020478

Fn key is right shift, I never use it :)

Offline Coreda

  • Posts: 780
Re: hhkb pro2 layout autohotkey script
« Reply #4 on: Sun, 29 December 2013, 14:27:20 »
Agree. If you get used to HHKB once, you are a bit frustrated on other layout.

My hhk.ahk. I don't use this for long while, so not sure it works well.
https://gist.github.com/tmk/6020478

Fn key is right shift, I never use it :)

I realize this is an older thread, but I was looking for an AHK script that emulated the HHKB layout so I could see if I could live without the arrow keys (I spend a lot of time in Photoshop, etc).

This script is almost perfect. I have one request: is there a way to be able to use the regular Left Shift+arrow as I normally would while the Right Shift is being used to enable the arrow keys? Currently the Left Shift isn't working correctly while RShift is held down.

Offline hasu

  • Posts: 3491
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: hhkb pro2 layout autohotkey script
« Reply #5 on: Sun, 29 December 2013, 19:10:52 »
Left Shift seems to work for me, I can select charactors with Left Shift + arrows(RShift+;'[/) in my web browser.

What keyboard are you using? Some old keyboard may not diferentiate both shift keys.
Or aren't other keymap utilities working on your machine?

Offline tp4tissue

  • * Destiny Supporter
  • Posts: 13724
  • Location: Official Geekhack Public Defender..
  • OmniExpert of: Rice, Top-Ramen, Ergodox, n Females
Re: hhkb pro2 layout autohotkey script
« Reply #6 on: Sun, 29 December 2013, 19:14:26 »
Egdx.. I don't need AHK...

jkjk... AHK good stuff. really opens up functionality of limited boards.

Offline hasu

  • Posts: 3491
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: hhkb pro2 layout autohotkey script
« Reply #7 on: Sun, 29 December 2013, 19:17:53 »
Don't increase your post count and waste our time with useless response. Ergodox is good stuff, though.

Offline Coreda

  • Posts: 780
Re: hhkb pro2 layout autohotkey script
« Reply #8 on: Sun, 29 December 2013, 19:22:41 »
I'm using a 15 y/o Apple Pro keyboard. I don't have any key remappings present that would conflict (only RCtrl and Scroll Lock).

The LShift combo kind of works for like one or two items but it's flaky and doesn't work in most cases. May be the keyboard like you said.

Offline tp4tissue

  • * Destiny Supporter
  • Posts: 13724
  • Location: Official Geekhack Public Defender..
  • OmniExpert of: Rice, Top-Ramen, Ergodox, n Females
Re: hhkb pro2 layout autohotkey script
« Reply #9 on: Sun, 29 December 2013, 19:25:12 »
Don't increase your post count and waste our time with useless response. Ergodox is good stuff, though.

obligatory  ~yo mama

Offline hasu

  • Posts: 3491
  • Location: Tokyo, Japan
  • @tmk
    • tmk keyboard firmware project
Re: hhkb pro2 layout autohotkey script
« Reply #10 on: Sun, 29 December 2013, 19:55:57 »
I'm using a 15 y/o Apple Pro keyboard. I don't have any key remappings present that would conflict (only RCtrl and Scroll Lock).

The LShift combo kind of works for like one or two items but it's flaky and doesn't work in most cases. May be the keyboard like you said.

Looks like it is roll over problem, that keyboard is not NKRO(I mean, 2KRO) and some 3-key combination may cause roll over error.

Offline Coreda

  • Posts: 780
Re: hhkb pro2 layout autohotkey script
« Reply #11 on: Tue, 31 December 2013, 03:54:59 »
Looks like it is roll over problem, that keyboard is not NKRO(I mean, 2KRO) and some 3-key combination may cause roll over error.

Hmm, you could be right. 3-key shortcuts for apps work though, such as Ctrl+Shift+Up, but clearly some error must be occurring while using this. At least I can get the basic feel for the HHKB setup :)

The arrow key modifier is more intuitive than expected using the pinky finger on the pseudo-Fn Shift key, but it's still a bit awkward, although the backspace position doesn't take much getting used to. Gaming-wise it would be simple enough to remap some other keys in-game if arrow keys were required.

It's a toss up for me whether it's more worthwhile (and cheaper) to just go with a compact Apple wireless keyboard, as the layout is perfect with the narrow arrow and function keys, and I'm used to typing on my MacBook. Yet there's something about the HHKB that I've always been attracted to - the aesthetic, the sound, the texture of the keys, those oh-so-sweet custom caps, and the community here...


Also: Happy New Year in advance to everyone  ;)

Offline 1pq

  • Posts: 669
  • Location: East Coast USA
  • Hipster Doofus
Re: hhkb pro2 layout autohotkey script
« Reply #12 on: Wed, 01 January 2014, 20:40:20 »
Don't increase your post count and waste our time with useless response. Ergodox is good stuff, though.

obligatory  ~yo mama

LOL CLASSIC TP4
I love this guy
main kbs:  87UB (55g)  Custom Filco TKL (62g clears)

WTS JD40, Custom Ergoclear Filco

WTB ROHS Red BBv2 (Topre), OG EK Tri-Color Skull (TOPRE)