Re: Just Shift or Ctrl
Posted: 10 Apr 2018, 14:52
Hello, I also have a need for this since I use photoshop and other drawing/editing programs, a problem for us artists is not knowing how to code. I just need an example code for a press and release key, after that I can write the rest.
Here's what I have, it just returns an error saying [LUA] ERROR: Cannot load buffer. [string "LuaMacros script"]:13: unexpected symbol near '):
Can you help me with my code?
I'm sure there's something I'm doing wrong.
Here's what I have, it just returns an error saying [LUA] ERROR: Cannot load buffer. [string "LuaMacros script"]:13: unexpected symbol near '):
Code: Select all
lmc_assign_keyboard('EDITER', '238B9097');
lmc_print_devices();
lmc_set_handler('EDITER', function(button,direction)
if (direction == 1) then return end
if (button == 33) then lmc_send_input(32, 0, 0)
if (button == 33) then lmc_send_input(32, 0, 2)
end
end
)
I'm sure there's something I'm doing wrong.