Search found 735 matches

by admin
08 Jul 2020, 07:48
Forum: Bug reports
Topic: LUAMacros Get/SetVariable in XPlane11 doesn't work with Laminar Datarefs
Replies: 14
Views: 10020

Re: LUAMacros Get/SetVariable in XPlane11 doesn't work with Laminar Datarefs

I would do some debugging to see what doesn't work. Is that if-branch called for your key? If you replace that lmc_xpl_command with some debug print - is it printed? So you realize if the condition is problem (wrong key number) or the xpl command. If xpl command is called but doesn't work, try to is...
by admin
08 Jul 2020, 07:44
Forum: Support - bugs
Topic: Problem with config file - program turns off
Replies: 4
Views: 3637

Re: Problem with config file - program turns off

What is {NUMPAD} supposed to send?
See https://github.com/me2d13/luamacros/wik ... #key-names
I don't think it's valid key name. Isn't it reason for crash? If you remove that call or use valid key name?
by admin
07 Jul 2020, 09:05
Forum: Support - bugs
Topic: Problem with config file - program turns off
Replies: 4
Views: 3637

Re: Problem with config file - program turns off

Hmm, no special idea.
I would start with empty config files (which works) and try to add macros one by one and see which one makes app to crash.
Or lines in your script file, maybe some char needs to be escaped? Did you create the xml by hidmacros (filling macros in app) or manually?
by admin
30 Jun 2020, 07:17
Forum: General
Topic: Shortcuts do not work when program is in focus
Replies: 1
Views: 1740

Re: Shortcuts do not work when program is in focus

This might be blocked on purpose, I don't remember exactly if such blocking code was in Hidmacros.
Anyway to answer your question: no. Even if this was a bug or coded on purpose, I have no chance to do any code change in Hidmacros any more.
by admin
25 Jun 2020, 07:57
Forum: HOW-TOs and documentation
Topic: Bind keyboard and mouse to specific window
Replies: 7
Views: 11094

Re: Bind keyboard and mouse to specific window

Technically there's probably some way how to do it but no, not currently implemented in luamacros.
by admin
25 Jun 2020, 07:56
Forum: HOW-TOs and documentation
Topic: Websocket client in lua
Replies: 2
Views: 2307

Re: Websocket client in lua

AFAIK you can't add 3rd party libraries to lua interpreter built in luamacros. It would have to be added into the exe (and I'm not sure how easy is that for embedded mode of lua).
What's your use case for websocket client?
by admin
17 Jun 2020, 07:26
Forum: General
Topic: Luamacros and holding key
Replies: 7
Views: 5204

Re: Luamacros and holding key

Try to put luamacros to some simple path, like C:\luamacors and open the file from that directory. Make sure you have no special characters in the path of the file you're trying to open.
Regarding dots - I don't see any dots between lines. Learn lua, you can't use luamacros without knowing lua.
by admin
17 Jun 2020, 07:23
Forum: General
Topic: HIDMacros and Bluetooth Keyboards?
Replies: 1
Views: 1942

Re: HIDMacros and Bluetooth Keyboards?

If they appear in windows as standard keyboard then yes. Try it and you see immediately.
by admin
15 Jun 2020, 19:16
Forum: General
Topic: Luamacros and holding key
Replies: 7
Views: 5204

Re: Luamacros and holding key

Do some debugging first. Is holding a key the problem or not working commands? For me holding a key works fine. This code lmc_device_set_name('KBD1', 'D80462F') -- upper log_handler = function(button, direction, ts, flags) print('Callback for device: button ' .. button .. ', direction '..direction.....
by admin
01 Jun 2020, 07:53
Forum: General
Topic: Luamacros and holding key
Replies: 7
Views: 5204

Re: Luamacros and holding key

I didn't try but it should work in luamacros as well, the keyboard driver should send repeated key-down events. Aren't you ignoring down direction? Share your script. And if you really receive just one key-down event, you should be able achieve this using timers - set some flag on key down and then ...