Hi everyone,
i’m completely newbie on programing…
I’ve bought the Keybow mini and i’ve followed the macros tutorial.
The goal is to create 3 shortcuts : save/copy/paste
Below the code :
function handle_minikey_00(pressed)
keybow.set_modifier(keybow.LEFT_CTRL, keybow.KEY_DOWN)
keybow.tap_key("v", pressed)
keybow.set_modifier(keybow.LEFT_CTRL, keybow.KEY_UP)
if pressed then
keybow.set_pixel(0, 255, 0, 0)
else
keybow.set_pixel(0, 0, 0, 0)
end
end
function handle_minikey_01(pressed)
keybow.set_modifier(keybow.LEFT_CTRL, keybow.KEY_DOWN)
keybow.tap_key("c", pressed)
keybow.set_modifier(keybow.LEFT_CTRL, keybow.KEY_UP)
if pressed then
keybow.set_pixel(1, 0, 255, 0)
else
keybow.set_pixel(1, 0, 0, 0)
end
end
function handle_minikey_02(pressed)
keybow.set_modifier(keybow.LEFT_CTRL, keybow.KEY_DOWN)
keybow.tap_key("s", pressed)
keybow.set_modifier(keybow.LEFT_CTRL, keybow.KEY_UP)
if pressed then
keybow.set_pixel(2, 0, 0, 255)
else
keybow.set_pixel(2, 0, 0, 0)
end
end
this issue occurs when pressing the key 00 for pasting (a text for eg), it pasts twice.
first it pasts the text when the key is pressed and secondly when the key is released.
How can I fixe it please ?
thanks in advance for your help