Search found 600 matches

by admin
02 Feb 2019, 21:17
Forum: HOW-TOs and documentation
Topic: Example script for OBS with usb keypad (homemade streamdeck)
Replies: 7
Views: 4163

Re: Example script for OBS with usb keypad (homemade streamdeck)

Person who you asked for help wrote some software and stated you need to know lua to use it. It's not enough to combine some scripts if you don't understand what they are doing. To your problem: what about removing the direction condition from the begging and use something like if (button == 86 and ...
by admin
30 Jan 2019, 08:59
Forum: General
Topic: Keyboards
Replies: 1
Views: 123

Re: Keyboards

yes
by admin
28 Jan 2019, 14:08
Forum: General
Topic: detecting "Double-click" vs "single click" from numpad
Replies: 4
Views: 263

Re: detecting "Double-click" vs "single click" from numpad

Hmm if you need some action also on single click (and different on double click) then it currently not possible with luamacros :-(. In this case you would really need to start timer on first click and on timer "alarm" perform action for single click if send press hasn't arrived. You can log timers a...
by admin
28 Jan 2019, 14:02
Forum: General
Topic: Keeping button pressed
Replies: 4
Views: 184

Re: Keeping button pressed

Yes, then it's the game issue. Some games read keyboards "directly", at low level, in the same way as luamacros internally does. Then such programs cannot be hacked with luamacros.
by admin
28 Jan 2019, 11:11
Forum: General
Topic: Keeping button pressed
Replies: 4
Views: 184

Re: Keeping button pressed

I think your scripts are correct. If you hold down the key at keyboard the repeating hold down action is done by keyboard driver (as you can configure the interval in keyboard settings). However the lmc_send_input is sending single event. So if you need the repetition it can't be done in luamacros u...
by admin
28 Jan 2019, 10:59
Forum: General
Topic: detecting "Double-click" vs "single click" from numpad
Replies: 4
Views: 263

Re: detecting "Double-click" vs "single click" from numpad

Timer would be resource consuming. Better remember timestamp of the key press, store it to some global variable and on every 0 key press compare current timestamp with the last one stored. Get the difference and decide. Lua probably has something built in to get current miliseconds (or from system s...
by admin
25 Jan 2019, 10:09
Forum: HowTos
Topic: Cross-locale reprograming of second kb into a hotkeys kb
Replies: 2
Views: 624

Re: Cross-locale reprograming of second kb into a hotkeys kb

Nice one.
You could read the file on script start and keep the definition in memory to not re-open file on every key press. But then you would need to re-run script to reflect changes in file.
by admin
21 Jan 2019, 09:35
Forum: Feature requests
Topic: Request: holding key down
Replies: 3
Views: 4603

Re: Request: holding key down

This is now possible in luamacros, using lmc_send_input you can send only key press or key release.
But for luamacros you need to deal with lua scripting.
by admin
18 Jan 2019, 09:25
Forum: HOW-TOs and documentation
Topic: Keystrokes allowed to pass through
Replies: 2
Views: 2380

Re: Keystrokes allowed to pass through

I need to pin this statement somewhere as I wrote it many times already here :-). Luamacors (and Hidmacros) use kind of hack to block original key as Windows OS is not designed to separate different keyboards. This hack works in 90% situations but some (other) application are written in way that the...