Page 1 of 1

Special characters ?

Posted: 01 Jul 2016, 04:48
by lulu
Hi,

I already use a large number of macros triggered using combinations of regular and modifier keys, so I thought I'd find new combinations using ALT codes characters like

Alt 1 ☺
Alt 2 ☻
Alt 3 ♥
Alt 4 ♦
...
Alt 0254 þ

as the software I want to control is able to recognize them as Key Commands.

But when I script

Code: Select all

lmc_device_set_name('KEYB3', '3B18869E')   
lmc_set_handler('KEYB3',function(button, direction)
  if (direction == 1) then return end  -- ignore down
  if     (button == string.byte('A')) then lmc_send_keys('☺')
  else print('Not yet assigned: ' .. button)
  end
end)
LuaMacros 0.1.0.233 says
"[KEY] ERROR: Invalid KeyName"

Is there a way I can send these special Alt Keys ?

Thanks very much!

Re: Special characters ?

Posted: 01 Jul 2016, 07:51
by admin
lmc_send_keys accept name of a key(s) as parameter (with modifiers like alt, ctrl, shift).
"☺" is not a key - as program says.
So the answer is no - you cannot send those characters as key strokes.

Re: Special characters ?

Posted: 01 Jul 2016, 15:32
by lulu
maybe in the future :)

Regarding

Code: Select all

lmc_send_keys("^{F10}")
It seems like it sends CTRL then F10 and not CTRL + F10 as in (let's hold CTRL until F10 is pressed) because the software on the receiving end only detects "F10"
Am I missing something ?

Thanks again!

Re: Special characters ?

Posted: 04 Jul 2016, 07:39
by admin
Works for me, what's your "software on the receiving end"?
Some software (games) can read keyboard directly and lmc_send_keys won't work as it should.

Re: Special characters ?

Posted: 04 Jul 2016, 09:24
by lulu
Steinberg Cubase Pro 8.5
My intuition is that it's a delay issue because I use ATNSOFT KeyManager 1.10 and also have a POS Keyboard with a mix of hardware/software stored Macros, and some encounter this issue when I skip programming the delays.

Re: Special characters ?

Posted: 21 Nov 2018, 23:07
by hummels
Works for me!