Search found 735 matches

by admin
29 Sep 2021, 08:19
Forum: General
Topic: how do you write If ButtonPress +Time Delay +Button Then statement
Replies: 3
Views: 4662

Re: how do you write If ButtonPress +Time Delay +Button Then statement

You can check current time in lua (standard functions), store it on first press and check on second
by admin
29 Sep 2021, 08:15
Forum: General
Topic: Pressing Two Buttons to execute one function
Replies: 1
Views: 2879

Re: Pressing Two Buttons to execute one function

One variable can't have 2 values - as you test in your condition.
You would need some flag to set on enter down and test it later
by admin
27 Sep 2021, 08:36
Forum: General
Topic: how you get Lua macros to detect between 0 00 keypad. Windows can..
Replies: 3
Views: 4691

Re: how you get Lua macros to detect between 0 00 keypad. Windows can..

Isn't 00 just sending 0 twice? I doubt windows would detect 00 as unique key...
by admin
08 Sep 2021, 07:46
Forum: HOW-TOs and documentation
Topic: Remap laptop internal keys
Replies: 5
Views: 6867

Re: Remap laptop internal keys

Use lmc_send_input - one call for ctrl down, another for ctrl up
by admin
07 Sep 2021, 07:46
Forum: HOW-TOs and documentation
Topic: Keys identified in Usb extra Numpad (Keyboard 2) but also from "keyboard 1". Help.
Replies: 5
Views: 6318

Re: Keys identified in Usb extra Numpad (Keyboard 2) but also from "keyboard 1". Help.

AFAIK you can send F13-F24 from the macro but you need some software which can receive it and do the action (like AutoHotKey or directly the program you want to control).
by admin
06 Sep 2021, 08:28
Forum: HOW-TOs and documentation
Topic: Keys identified in Usb extra Numpad (Keyboard 2) but also from "keyboard 1". Help.
Replies: 5
Views: 6318

Re: Keys identified in Usb extra Numpad (Keyboard 2) but also from "keyboard 1". Help.

Don't call lmc_device_set_name twice in your script. Try to remove the first call and keep the one in print.
Regarding 000 - probably could be with some scripting (including time measurement and ignoring quickly followed presses) but not sure if you can recognize "regular 0" and first of 000
by admin
30 Aug 2021, 08:06
Forum: HowTos
Topic: Want to use same button for two actions
Replies: 1
Views: 3132

Re: Want to use same button for two actions

Then you can't (without scripting)
by admin
30 Aug 2021, 08:05
Forum: General
Topic: <NULL> in serial command
Replies: 4
Views: 5168

Re: <NULL> in serial command

Not yet...
by admin
30 Aug 2021, 08:03
Forum: HOW-TOs and documentation
Topic: Remap laptop internal keys
Replies: 5
Views: 6867

Re: Remap laptop internal keys

You can call lmc_set_handler to bind only one key, not whole keyboard. Check wiki at github.
by admin
12 Aug 2021, 07:48
Forum: HOW-TOs and documentation
Topic: How to disable the triple zero from a numpad keyboard?
Replies: 2
Views: 3935

Re: How to disable the triple zero from a numpad keyboard?

In luamacros that would be possible with some scripting. First press remembers timestamp, process the macro and following callbacks would be ignored in some time interval after first press (using that timestamp).