Nov 232015
 
 November 23, 2015  Posted by at 3:27 pm AutoHotKey, Dev Environment, Developer At Work, Life of Iris  Add comments

I’m finding myself in a small white room, packed with a large crowd of very young German girls and one very popular (and tanned) Aussie. My ‘Nerds rule’ sticker isn’t making me any new friends, but that’s alright- I’m just trying to prove to somebody that I certainly *can* (if I *really have to*) stay at a backpacker. Even after many years in OZ and being above the Avg(age). And oh how I hate myself right now. But not as much as the kids here will do when I wake up at 6 AM to get some coding and gym done before work muahahaha. Anyway.

WP_20151123_23_16_06_Moment

Talking about travel (I’m in Stockholm), while I was in the US for the MVP summit and SCNA I made sure to order myself a Pok3r III , an awesome mechanical 60% keyboard for travel.

A new darling to my collection. Warm welcome to Pok3r lll! Tournament ed. gets a well-deserved break

A photo posted by Iris Classon (@irisclasson) on

The problem however is my dependence on the arrow keys, as well as page up and down just to mention a few of the keys that do not have dedicated keys on this keyboard. They do sort of exists, but by a rather awkward key-combo that involves finger acrobatics. And of course you can program the keyboard, but I hadn’t gotten around to that and decided to whip together a hacky little AHK macro instead.

 With Kristoffer Gronlund and Fredrik Bjoreman from Kodsnack podcast. Fine dining and then some café hacking after work in Stockholm. I got to show of my new baby, my white Ducky Mini <3


With Kristoffer Gronlund and Fredrik Bjoreman from Kodsnack podcast. Fine dining and then some café hacking after work in Stockholm. I got to show of my new baby, my white Pok3r III <3

The tiny script for arrows using Ctrl down and the I,j,k,l keys (as long as capslock is toggled), and same combo but with u and o for page up and down is as follows:

^i:: IFTT(“{Up}”) return

^k:: IFTT(“{Down}”) return

^j:: IFTT(“{Left}”) return

^l:: IFTT(“{Right}”) return

 

^u:: IFTT(“{PgUp}”) return

^o:: IFTT(“{PgDn}”) return

 

IFTT(Key) {

                if (GetKeyState(“CapsLock”,”T”)=1)

                                Send, %Key%

}

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

What is 5 + 3 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)