geekhack

geekhack Community => Keyboards => Topic started by: snowblind on Tue, 16 July 2013, 09:22:17

Title: hhkb pro2 layout autohotkey script
Post by: snowblind 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 (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
Title: Re: hhkb pro2 layout autohotkey script
Post by: esoomenona 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.
Title: Re: hhkb pro2 layout autohotkey script
Post by: esoomenona 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.
Title: Re: hhkb pro2 layout autohotkey script
Post by: hasu 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 :)
Title: Re: hhkb pro2 layout autohotkey script
Post by: Coreda 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.
Title: Re: hhkb pro2 layout autohotkey script
Post by: hasu 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?
Title: Re: hhkb pro2 layout autohotkey script
Post by: tp4tissue on Sun, 29 December 2013, 19:14:26
Egdx.. I don't need AHK...(http://www.cute-factor.com/images/smilies/onion/069.gif)

jkjk... AHK good stuff. really opens up functionality of limited boards.
Title: Re: hhkb pro2 layout autohotkey script
Post by: hasu 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.
Title: Re: hhkb pro2 layout autohotkey script
Post by: Coreda 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.
Title: Re: hhkb pro2 layout autohotkey script
Post by: tp4tissue 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
Title: Re: hhkb pro2 layout autohotkey script
Post by: hasu 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.
Title: Re: hhkb pro2 layout autohotkey script
Post by: Coreda 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  ;)
Title: Re: hhkb pro2 layout autohotkey script
Post by: 1pq 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