$9 Tekla Macro Deck

If there is anything I missed or mistakes made please let me know in the comments below.
Link for Lua macro and HID macro
www.hidmacros.eu/download.php
Tekla deck lua file
mega.nz/#!3hgTmCyK!h-KDPz8MO-...
www.dropbox.com/s/fo48yp2n8t7...
Tekla deck excel file
mega.nz/#!D9wHXAxB!NuC1lNEv8u...
www.dropbox.com/s/pr4eqiufdbp...
Keyboard shortcuts
mega.nz/#!T05BhQwS!9jwdzfHOu2...
www.dropbox.com/s/ajetzcpjk01...
lmc_device_set_name('Tekla deck','1E3A87CA')
lmc_print_devices()
lmc_set_handler('Tekla deck', function(button,direction)
if (direction == 1) then return end
if (button == 13) then
lmc_send_keys('^{ENTER}', 50)
elseif (button == 97) then
lmc_send_keys('^7', 50)
elseif (button == 98) then
lmc_send_keys('f', 50)
elseif (button == 99) then
lmc_send_keys('^t', 50)
elseif (button == 100) then
lmc_send_keys('^6', 50)
elseif (button == 101) then
lmc_send_keys('^d', 50)
elseif (button == 102) then
lmc_send_keys('^w', 50)
elseif (button == 103) then
lmc_send_keys('^l', 50)
elseif (button == 104) then
lmc_send_keys('^;', 50)
elseif (button == 105) then
lmc_send_keys('^r', 50)
elseif (button == 111) then
lmc_send_keys('{ESC}', 50)
elseif (button == 106) then
lmc_send_keys('^s', 50)
elseif (button == 109) then
lmc_send_keys('^{PGUP}', 50)
elseif (button == 107) then
lmc_send_keys('^{PGDN}', 50)
elseif (button == 8) then
lmc_send_keys('{DELETE}', 50)
elseif (button == 110) then
lmc_send_keys('o', 50)
elseif (button == 96) then
lmc_send_keys('^8', 50)
elseif (button == 35) then
lmc_send_keys('(t)', 50)
elseif (button == 40) then
lmc_send_keys('f', 50)
elseif (button == 34) then
lmc_send_keys('(i)', 50)
elseif (button == 37) then
lmc_send_keys('(y)', 50)
elseif (button == 39) then
lmc_send_keys('(x)', 50)
elseif (button == 36) then
lmc_send_keys('%(0176)', 50)
elseif (button == 38) then
lmc_send_keys('(k)', 50)
elseif (button == 33) then
lmc_send_keys('{BACKSPACE}', 50)
elseif (button == 46) then
lmc_send_keys('o', 50)
elseif (button == 45) then
lmc_send_keys('(^n)(^b)(^j)', 50)
end
end
)

Пікірлер: 22

  • @asdfgh76232
    @asdfgh762324 жыл бұрын

    Clever way man 😉

  • @ALFREDENEWMAN1
    @ALFREDENEWMAN15 жыл бұрын

    You must owe Raul a Beer for showing you how to program your Macro Deck ;)

  • @FrenchmanontheRooftop

    @FrenchmanontheRooftop

    5 жыл бұрын

    True, Using his setting file as a base saved me a fair bit of trouble.

  • @maggiejugg6359
    @maggiejugg63593 жыл бұрын

    thanks

  • @Ganexcg
    @Ganexcg3 жыл бұрын

    see the problem, the button command works only DURING RELEASE . So when you press it records the original key letter and then when you release it gives you the modified letter that you want. So you get two letters for single button i tried with function press(key) lmc_send_input(string.byte(key), 0, 0) -- press lmc_send_input(string.byte(key), 0, 2) -- release end how to use this any suggestion ?

  • @FrenchmanontheRooftop

    @FrenchmanontheRooftop

    3 жыл бұрын

    Maybe for commands where you need to confirm your action like moving to the next drawing after editing. a ctrl+Pagedown for the press and y for the release.

  • @Ganexcg

    @Ganexcg

    3 жыл бұрын

    @@FrenchmanontheRooftop got it , Will do that , thank you

  • @chefkero
    @chefkero Жыл бұрын

    i want to use feature like space bar hold button to swipe my layer. or at hold to make as color picker. how to program that one?

  • @FrenchmanontheRooftop

    @FrenchmanontheRooftop

    Жыл бұрын

    Apologies. No idea if Lua can do that. I stopped using it almost 2 years ago. I got a razer tartarus second hand for around $50 and have been using that as it is more comfortable and the software makes it very easy to use modifyer kies

  • @maggiejugg6359
    @maggiejugg63593 жыл бұрын

    i use one of those fancy looking one hand keyboards, i set 'q 'as 'y'. but when i press 'q', i get "qy". how to solve this , please help.

  • @FrenchmanontheRooftop

    @FrenchmanontheRooftop

    3 жыл бұрын

    Unfortunately I am not sure, I have found Lua macro does not always work correctly and would often need to be restarted.

  • @maggiejugg6359

    @maggiejugg6359

    3 жыл бұрын

    @@FrenchmanontheRooftop thank you for reply :)

  • @maggiejugg6359

    @maggiejugg6359

    3 жыл бұрын

    @@FrenchmanontheRooftop Restarted it works, thanks , but looks like there are few programs it is still there, it works in notepad but not in sticky, anyway its been great thank you, also not running it in admin mode seem to have solve it for some other people

  • @n00fany
    @n00fany3 жыл бұрын

    HIBMacros still not working in compatibility of windows 7

  • @FrenchmanontheRooftop

    @FrenchmanontheRooftop

    3 жыл бұрын

    No idea, I tried it on a couple of divices and it worked for me. Since you only need it to find the scan codes of each key you could try HIDmacro on another device as I find the scan codes are always the same.

  • @joeyveloso
    @joeyveloso3 жыл бұрын

    none of my keys have been remapped, been struggling to get lua to work. I'm using a cheap one handed gaming keypad and my code is this: mc_device_set_name('Clip Studio deck','237DA0A7') lmc_print_devices() lmc_set_handler('Clip Studio deck', function(button,direction) if (direction == 1) then return end if (button == 20) then lmc_send_keys('^{ENTER}', 50) elseif (button == 27) then lmc_send_keys('^{ESC}', 50) elseif (button == 112) then lmc_send_keys('F1', 50) elseif (button == 113) then lmc_send_keys('F2', 50) elseif (button == 114) then lmc_send_keys('F3', 50) elseif (button == 115) then lmc_send_keys('F4', 50) elseif (button == 116) then lmc_send_keys('F5', 50) elseif (button == 192) then lmc_send_keys('``', 50) elseif (button == 49) then lmc_send_keys('[', 50) elseif (button == 50) then lmc_send_keys(']', 50) elseif (button == 51) then lmc_send_keys('^{NUM-}', 50) elseif (button == 52) then lmc_send_keys('^{NUM+}', 50) elseif (button == 53) then lmc_send_keys(',', 50) elseif (button == 54) then lmc_send_keys('.', 50) elseif (button == 9) then lmc_send_keys('{BACKSPACE}', 50) elseif (button == 81) then lmc_send_keys('m', 50) elseif (button == 87) then lmc_send_keys('w', 50) elseif (button == 69) then lmc_send_keys('e', 50) elseif (button == 82) then lmc_send_keys('u', 50) elseif (button == 84) then lmc_send_keys('t', 50) elseif (button == 65) then lmc_send_keys('a', 50) elseif (button == 83) then lmc_send_keys('s', 50) elseif (button == 68) then lmc_send_keys('d', 50) elseif (button == 70) then lmc_send_keys('p', 50) elseif (button == 71) then lmc_send_keys('g', 50) elseif (button == 16) then lmc_send_keys('+', 50) elseif (button == 90) then lmc_send_keys('z', 50) elseif (button == 88) then lmc_send_keys('x', 50) elseif (button == 67) then lmc_send_keys('c', 50) elseif (button == 86) then lmc_send_keys('v', 50) elseif (button == 66) then lmc_send_keys('b', 50) elseif (button == 17) then lmc_send_keys('^', 50) elseif (button == 18) then lmc_send_keys('%', 50) elseif (button == 32) then lmc_send_keys('^{SPACE}', 50) end end ) do you have any idea what's wrong with my code?

  • @FrenchmanontheRooftop

    @FrenchmanontheRooftop

    3 жыл бұрын

    aside from a "L" missing in the first lmc it all looks fine. Although that was probably just missed when you copied the code into the comment field. My first recommendation is to check if Lua is looking for the correct device as it can change depending on what usb port you are plugging into. So unplugging your keypad and then plugging it back in can cause it to not work. Run HIDmacro and recheck the device name. also run "lmc_print_devices()' in lua macro and see what devices it throws out. I have copied the wrong parts out a couple of times now so make sure you are using the correct part of the name.

  • @mysdkpkok
    @mysdkpkok3 жыл бұрын

    Please check enterpad for shortcuts on ebay

  • @FrenchmanontheRooftop

    @FrenchmanontheRooftop

    3 жыл бұрын

    Looks like a great device to have on the side. Just too bad it's so expensive. I'll have too look out for a second hand one. I am currently using a razer Tartarus and only have to lift my hand off of it to type when working.