Can your Keyboard do THIS?? - Make ANY key a MACRO!

Linus Tech Tips ·Linus Tech Tips ·2019-05-06 · 2,048 words · ~10 min read
Floatplane YouTube

Transcript

JSON SRT VTT 172
0:00 okay so long story short
0:04 this is the hasu usb to usb controller
0:07 converter you can use it to convert
0:10 almost any usb keyboard into a fully
0:14 programmable keyboard using tmk or qmk
0:18 so keyboard nerds yes this thing is every bit as awesome
0:24 as it sounds there are a few limitations but overall it's great so if you want to
0:30 buy or build one of these you should it
0:33 has the terran seal of approval even the keyboard's RGB still works normally as
0:39 for me i use three of them to give myself three additional pure macro
0:44 keyboards no biggie okay that's all folks see you next time when i'll be
0:48 discussing five reasons why you might want to inject an rfid chip into your
0:54 oh sorry did you guys want more of an explanation than that fine stick around
1:06 the marlin screwdriver set from ifixit features five specialty precision
1:09 screwdrivers check it out today at ifixit.com forward slash Linus okay so
1:14 before i explain this thing let me address a question that i get so very
1:18 often taryn do you really need so many
1:21 keyboards can't you just use multiple macro layers on one keyboard
1:27 let me answer your question with a question when you board an airplane do
1:32 you peek inside the cockpit and ask the pilot do you really need so many
1:36 switches and buttons a single keyboard and mouse works fine for microsoft
1:40 flight simulator in both cases the answer is the same having all of your
1:45 controls laid out like this as a single
1:48 layer of dedicated keys with everything
1:51 clearly labeled means that you can work more quickly and more accurately it just
1:57 requires more physical space
2:00 so check this out on the left i'm using dedicated macro keys to view the
2:05 production calendar go to the graphics folder of my current project to switch
2:09 to premiere to add a specific effect and to insert a specific sound on the right
2:15 i'm doing the same thing manually without macro keys
2:21 it uh takes a lot longer
2:25 those seconds really add up can we fast forward this a little bit
2:29 okay okay thank you anyway there are a lot of jobs that use
2:34 specialized hardware just because i had
2:37 to build and program my own cockpit
2:41 doesn't mean it was a waste of time okay so now that we've established why
2:46 someone might want a dedicated macro keyboard let's examine our options and
2:50 whoa oh there's actually quite a few each
2:54 with varying levels of difficulty stability functionality and price
2:59 if only someone could sort through all this stuff and tell us which one is best
3:04 for most people
3:07 so in third place is the Corsair k55 at
3:11 just 50 dollars this is the cheapest of their offerings that still supports
3:17 is easy to use software that allows for every key of a supported keyboard to be
3:22 reprogrammed with icue you can create normal macros or because it supports f13
3:28 to f24 you can use this profile
3:32 and this always running auto hotkey script to call powerful functions with
3:37 parameters like the ones i demonstrated earlier if that sounds pretty cool make
3:42 sure you check out my full instructional video linked in the description below
3:47 before buying a k55 in second place for 60 dollars we've got
3:51 the razer cyanosa chroma
3:55 huh this is my list and this still surprised
3:58 me i've always found razer synapse really annoying to use but one of its
4:03 best features is that it can distinguish between multiple keyboards and although
4:09 it does not support f13 to f24 you can
4:13 directly launch any file from any key
4:17 which includes auto hotkey scripts that is incredibly useful oh and for your
4:22 extra 10 bucks you also get per key RGB lighting honestly the cyanosa chroma is
4:28 such a great deal for a pure macro keyboard that i suspect for most of you
4:34 it'll be more than enough so if you want to go this route the razer profile all
4:39 the autohotkey code and my instructional video can again be found in this video's
4:44 description finally in first place for just 63. from oneupkeyboards.com
4:51 you can get the hasu usb converter or as
4:54 i call it the ultimate macro device this
4:57 is the cheapest and easiest way that i have found to get
5:01 the awesome functionality of tmk or qmk
5:05 onto almost any usb keyboard and that's
5:08 a really big deal because boutique tmk
5:12 and qmk keyboards usually cost over 100
5:15 us dollars altogether that one that Linus and Anthony built was about 220
5:20 bucks for the board plate case switches and keycaps and in fact the very
5:25 cheapest fully assembled tmk keyboard that i was able to find is this one with
5:30 only 68 keys for a hundred dollars so on
5:34 a dollar per macro key basis the keyboard converter is way out ahead of
5:39 that even when you factor in having to get a cheap keyboard to go with it this
5:43 one's like 15 so whatever but who cares
5:47 about tmk and qmk anyway and what on
5:51 earth are they i'm glad you asked they are open source keyboard firmwares that
5:56 are designed for specific hardware like
5:59 the teensy and the prionic pcb and while i had always thought of these
6:04 custom keyboards as a toy for people with too much money and no knowledge of
6:10 auto hotkey as it turns out
6:13 only some of that is true
6:18 seriously though there's a lot of cool stuff in here that will really appeal to
6:22 a certain kind of nerd especially the programmers it's got macros layers and
6:27 RGB support of course but there's also special stuff like space cadet shift
6:32 which uses your shift keys as parentheses if you just tap them unicode
6:36 support which does exactly what you'd expect and tap dance which will call
6:40 different functions from the same key depending upon how many times you tap it
6:46 okay so to get this working first you need a hex file the easiest way to get
6:51 one is to use this online tool but don't bother because it doesn't give you
6:55 access to most of the cool stuff that tmk or qmk is capable of so the better
7:02 way to do this is to set up a Linux environment in Windows install git and
7:08 then download the entire qmk repository
7:12 it's easy then you'll be ready to use a text
7:16 editor to modify the appropriate keymap.c file and maybe config.h launch
7:22 ubuntu cd over to our qmk firmware
7:25 folder and sudo make ourselves a hex file
7:29 now i have a full tutorial video for that too it's linked below but don't
7:34 worry you don't have to do any of that stuff because you can find several hex
7:39 files that i already created for you on
7:42 my github also linked below i recommend
7:46 f24.hex but if you want control shift
7:49 and alt to still work normally use f24
7:53 with modifiers.hex bringing us finally to how
7:57 you actually get this thing working download install and open qmk toolbox
8:03 then just plug in your usb converter by itself with no keyboard attached and hit
8:07 the little button locate your hex file and hit flash to flash it onto the
8:12 firmware then unplug the converter and you're done just remember that every
8:17 time you use the converter you need to plug it in by itself and then plug in
8:22 your keyboard to the back or it won't work and sometimes you might have to
8:26 replug it in after a computer restart which is pretty annoying now if you were
8:31 to go and type into a text document at this stage you'd probably notice that
8:36 it's still sending normal keystrokes except the caps lock doesn't work so
8:41 what gives well i lied earlier you're not quite
8:44 done yet next you'll need to download and install auto hotkey then go to this
8:49 link and download this auto hotkey script by clicking raw and ctrl s to
8:54 save create this exact folder structure
8:58 and save it here delete the stupid.txt
9:01 if it appears now double-click on it to get it running a friendly icon should
9:06 appear in your taskbar now try typing into a text document instead of text you
9:12 should be seeing tooltips no matter which key you press perfect
9:17 after this point it's up to you all you have to do is replace those tool tips
9:21 with literally any script you want you can do anything that auto hotkey can do
9:27 which is a lot oh i probably should have mentioned that you should already know
9:32 how to use auto hotkey before you add a second keyboard
9:36 so if you're new this is a great tutorial to get you started also i
9:40 strongly recommend that you place a shortcut to the script file into your
9:44 startup folder like so but why do it
9:47 this way why not just create the macros inside of
9:51 qmk well because auto hotkey can do a
9:56 thousand times as much stuff so for my purposes i just needed a
10:01 way for my qmk keyboard to call any of
10:06 the functions that i'd already written in auto hotkey and because i couldn't
10:11 figure out how to send ps2 set 1 make
10:14 scan codes or raw usb keyboard hid codes
10:19 i had to go with my usual method of using f24 as an extra modifier key i
10:26 call this wrapping a keystroke
10:29 then i use this single line in auto hotkey to block those wrapped keystrokes
10:34 and replace them with whatever i want but a few keys don't play nicely with
10:39 this method namely caps lock num lock
10:43 shift ctrl alt win apps and pause break
10:47 so before wrapping them i replaced them
10:51 with little-known keys like language
10:54 international and the brazilian comma
10:57 and that's it i'm done for three years i've been
11:01 looking for a cheap but stable way to do all of this and the hasu usb to usb
11:07 keyboard converter checks all the boxes even compatibility is a strong point for
11:12 it it worked with every single keyboard and numpad that i tried and after two
11:18 other converters i was even able to convert a model m into a qmk macro board
11:26 it's not like i'd recommend it for this purpose but still it works with the
11:30 model m now some of you might have noticed that
11:33 asterisk before there is a cheaper way to do this
11:38 open up your keyboard remove the logic board replace it with a teensy rewire
11:44 everything and pray you didn't make a mistake this is less expensive than the
11:49 hasu usb converter but this
11:53 is much easier you know what else is easy
11:57 ting they are the mobile carrier that is focused on customer service and customer
12:01 satisfaction first when you culting you don't speak to a robot you get put
12:06 directly through to a person with ting you pay only for what you use with the
12:10 average bill being only 23 bucks a month per device and if you're stuck in a
12:13 contract and want to switch to ting they'll cover 25 of your cancellation
12:17 fee up to 75 dollars head on over to Linus 2018.ting.com and try out their
12:21 savings calculator they've lowered their mobile data rates and now data is just
12:24 10 bucks per Gigabyte beyond the second gig and every single ting customer will
12:28 be able to reap the benefits of that change get 25 bucks off your bill or 25
12:32 off a new phone at the ting shop at linus2018.ting.com
12:36 thanks for watching guys like it if you liked it dislike it if you disliked it
12:40 oh you can watch my original video about lua macros but don't bother because this
12:44 video makes it obsolete look at all these second keyboard pictures that
12:47 people have sent me since then anyway buy some merch join the forum and
12:51 subscribe to pewdiepie