Just Shift or Ctrl

How can be this controlled in that simulator? Can HIDmacros be used with this application?
Posts: 1
Joined: 10 Apr 2018, 14:24

Re: Just Shift or Ctrl

Post by duart3000 » 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 '):

Code: Select all

lmc_assign_keyboard('EDITER', '238B9097');

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)

Can you help me with my code?
I'm sure there's something I'm doing wrong.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests