 Why on earth would anyone want a second keyboard? Linus asked me when I tried to show him this project I've been working on for quite a while. Well, let me tell you, it's not for everyone, but if you are a productivity freak like me, the concept might really appeal to you. Basically, this entire keyboard has been converted into a set of 87 fully programmable macro keys. Intel brings DDR4 to the mainstream with their new Core i7-6700K and Core i5-6600K processors. Check out the link in the video description to learn more. So, to give you some background on why I need a second keyboard, I'm the video editor for most of the videos that go up on this channel. That's a lot of videos, and the more quickly and efficiently I can edit them, the better. Now, fast and efficient video editing relies heavily upon keyboard shortcuts, so much so that inside Premiere, I assigned functions to all the numbers, letters, and symbols, all the function keys, the entire numpad, and most of the reasonable combinations of Ctrl, Shift, and Alt. That's a lot of shortcuts, and yes, I do use all of those on a daily basis. It's easy to remember single key shortcuts, but the more keys you need to press in a row, the more difficult it is to not only remember the key combination, but also to physically press those keys. That's what macro keys are good for. If you don't know, a macro key will basically launch a pre-programmed series of keystrokes and or mouse clicks, which you would otherwise have to press manually every time. For example, let's say I'm editing a video in Premiere and I want to reverse a clip on the timeline. To do this, I could click on the clip, mouse over to the clip menu, select speed duration, mouse over to the panel that appears, click reverse, and then mouse over to enter and click on that. This takes a few seconds to do. Alternatively, I could just press one single macro button, which automatically executes the keystrokes, Ctrl R, Tab Tab, Space Enter, which accomplishes exactly the same thing, but in a fraction of a second. That's the power and usefulness of a keyboard macro. Gamers will use macros in games like World of Warcraft, Dota, Starcraft, League of Legends, and so on, but pretty much any game can be made easier with macros. And keyboard macros are also really useful for certain jobs, like video editing, animation, graphic design, programming, music creation, and I don't know, accounting maybe. I don't really know what accountants do all day. But pretty much anything that involves heavy computer use and repetitive tasks. Usually, macros are just a series of blind keystrokes and mouse clicks, but you can make even more powerful macros using Auto Hotkey. Auto Hotkey is a free, brilliant little program that you can use to completely automate repetitive tasks, remap keys, intelligently simulate clicks and keystrokes, and do a lot more stuff that I don't even understand. I've used Auto Hotkey to program a ton of useful features for Premiere Pro that don't even exist in the application itself, like recalling saved transitions and applying effects directly onto selected clips. But my problem now is that I use so many macros and so many keyboard shortcuts that I have now physically run out of keys on the keyboard. And what can you do then? Well, we have a few of these cool little tech keys keyboards lying around the office. So I experimented with those. We also have a Razer Orbweaver, which is actually pretty awesome, and it's been designed for this exact purpose. All of its keys can be remapped to any key or key combination you desire. Now, since you're still restricted to standard keyboard keys, what I like to do is program the keys on these extra keyboards to execute very obscure key combinations, like Ctrl-Alt-F1, and then I program Auto Hotkey to listen for these key combinations and then execute whatever function I desire. The trouble is, if you do too much of this, it's tough to remember what combinations you've already used and what combinations all your various different applications might already be using. But you know what? The tech keys keyboards and the Orbweaver still don't have enough keys for all the extra functions that I want. And these keyboards are surprisingly expensive. And that's when it hit me. Why can't I just hook up a second keyboard to my computer? Well, it turns out that Windows will treat every keyboard that you plug in as one keyboard. You can plug in all the keyboards you like, but your computer cannot tell the difference between them. Bummer. Fortunately, one of my Twitter followers linked me to this video by Tom Scott, who successfully got 14 keyboards to work as their own separate inputs. He used a program called Lua Macros, which was actually developed for flight simulator enthusiasts who want to have a lot of switches and buttons for their virtual cockpits. Great. So it is possible. Now all I needed to do was figure out how to code in Lua and find a way to get Lua Macros to communicate with Auto Hotkey, which is where all of my functions already are. Tom Scott had done this, but he didn't provide any of the necessary details like, you know, sample code. Then it presses the F24 key. So after quite a bit of frustration, I finally figured out how to do it. My second keyboard now works as its own unique input. And every single one of these keys acts as a macro button, which will launch its own unique Auto Hotkey script. So here's how you do it. First, download Lua Macros and Auto Hotkey. Plug in both of the keyboards you want to use. Run Lua Macros and open up Quickstart.Lua. Then click on the play button. You'll get a prompt asking you to identify device macros, which will become the name of your second keyboard. All you need to do is press any key on that second keyboard. Lua Macros will now recognize it as such. And those keystrokes will now be intercepted by Lua Macros and therefore blocked from normal typing. Once you get that working, you can write your own code or download and use my Lua code, which basically just writes a small string to a file on disk and then presses the F24 key. Download my Auto Hotkey script or write your own and double click on it to get it running. An icon for that script will now appear on the task bar. Now, anytime the F24 key is virtually pressed by Lua Macros, this Auto Hotkey script will read the string in that file and execute the correct associated function. Ta-da! I knew it would be difficult to remember which key did what, so I created a bunch of keycap images in Photoshop, printed them, cut them out, and taped them onto the existing keys. If you do this, keep in mind that your keycaps will not necessarily be compatible with every slot on the keyboard, so you may have to be careful to maintain the underlying QWERTY layout. Although for me, I think it was just the F and J keys. The keyboard that I used for this project was the Logitech K120, and it's nothing special at all. Any cheap or old keyboard will work perfectly. When using the second keyboard, it does take about two seconds to look down, find the key you want, move your hand over to that key, press it, and then move your hand back to the primary keyboard. So it's best to use the secondary keyboard for secondary functions that you don't need all that often. If you want to try building and programming a second keyboard, I will be providing all the necessary code in the video description. You're welcome. And before you say it, I know that my code is sloppy and suboptimal, I know. But guess what? It still works. So if any of you real programmers out there want to complain about my messy code, I sure would appreciate it if you could provide a functional sample of some code that will work even better. A great place to do this will be in the Linus Tech Tips discussion thread that is associated with this video, also linked below. There's still a lot to figure out, like using modifier keys and double tapping to launch a different function. In fact, LuaMacros itself is just a side project of a single man with very little free time. It's not even out of beta, and it's still got a lot of bugs. The good news is the software is open source, so if you can help to make LuaMacros better, I really suggest that you do. I think it would be great if we could use the power of our community to improve useful niche software like LuaMacros. Personally, I'm very satisfied with my secondary keyboard, and I'm really looking forward to seeing what you guys come up with. TunnelBear is the easy-to-use VPN app for mobile and desktop. It allows you to tunnel to 16 different countries and browse the Internet and use online services as if you're in one of those other countries. They have apps for iOS, Android, PC, and Mac, and they also have a Chrome extension. When you pick a country and turn TunnelBear on, two things will happen. Your connection gets encrypted with AES 256-bit encryption, the strongest available, and your public IP address gets switched so you can show up as if you're in a different country. With TunnelBear, there's no need to mess around with port configurations, DNS, or router settings, or all that nonsense. It just handles all of that by itself. You don't have to worry about it. They also give you 500 megabytes of data for free so you can try it out, no credit card required. And if you want to upgrade to unlimited data, you can save 10% by going to tunnelbear.com slash LTT. Thanks for watching, guys. Give the video a like or a dislike. Get subscribed. Join the forum and talk about LuaMacros or whatever. You can support us by changing your Amazon bookmarks to one with our affiliate code so we get a small kickback whenever you buy something. And check out another one of my videos up here or wherever where I talk about the FlyKly and how incredibly disappointing it was. No, the SmartPet. I keep forgetting what it was called. It's terrible, though.