/readme,_git_stuff,_licence,_etc/README.md

https://github.com/TaranVH/2nd-keyboard · Markdown · 41 lines · 25 code · 16 blank · 0 comment · 0 complexity · a7a73cf5f8973b3765350fb8f61711a7 MD5 · raw file

  1. # 2nd-keyboard
  2. NOTE: all this info is OBSOLETE, this readme file is dumb now and will be updated when i can get around to it.
  3. A quickstart guide for using a second keyboard purely for macros on Windows.
  4. It's not super complicated, but you'll need a novice understanding of scripting/programming, and need to know how to effectively debug a script one step at a time (for when you are modifying my code.)
  5. ---
  6. ## Getting started
  7. [Watch the video](https://youtu.be/Arn8ExQ2Gjg?t=362) first, then take a look at the instructions below.
  8. 1. Ensure that both your keyboards are plugged in.
  9. 2. Download and install [LuaMacros](http://www.hidmacros.eu/forum/viewtopic.php?f=10&t=241#p794) and [AuthoHotkey](https://autohotkey.com/).
  10. 2. Download `2nd keyboard if using luamacros.ahk`, `SECOND KEYBOARD script for LUA MACROS.lua`, and `keypressed.txt` from this github repository, by clicking on the RAW button for each, and then selecting FILE > SAVE AS. Save them all into the same folder.
  11. 2. Open `SECOND KEYBOARD script for LUA MACROS.lua` using LuaMacros.exe, which will allow you to view and modify the code. You'll need to change the file path of keypressed.txt at least.
  12. 4. Click on the "play" arrow button. An identification window should pop up. Press any key on your 2nd keyboard, and luamacros will identify that device as your 2nd keyboard.
  13. 5. Typing on your 2nd keyboard should no longer work, since LuaMacros is now intercepting and blocking those keystrokes.
  14. 6. Press the spacebar on your second keyboard, then check keypressed.txt to see if it now contains the string "spacebar". If so, you got it working!
  15. 7. Right-click on `SECOND KEYBOARD - Premiere functions.ahk` and open it in a text editor like notepad++.
  16. 8. Scroll down to line 300 and change the filepath `C:\Users\TaranVanHemert\Documents\GitHub\2nd-keyboard\2nd keyboard support files\keypressed.txt` to the correct location of keypressed.txt on your own computer.
  17. 11. `SECOND KEYBOARD Premiere functions in AutoHotKey.ahk` was built for use in Adobe Premiere, but you can delete all the functions and write your own, for whatever application you desire!
  18. 12. If you do want to use my AHK Premiere functions, you'll need to modify them to fit your own computer. Common changes that will have to be made are: Coordinates, panel names, colors.
  19. ### Don't Panic!
  20. ---
  21. ## References
  22. * [DIY 87-Key Macro Keyboard](https://www.youtube.com/watch?v=Arn8ExQ2Gjg) by Taran of LinusTechTips
  23. * [The Art of the Bodge](https://www.youtube.com/watch?v=lIFE7h3m40U) by Tom Scott
  24. * [LuaMacros](https://github.com/stevedonovan/LuaMacro)
  25. * [AuthoHotkey](https://github.com/AutoHotkey/AutoHotkey)