Search found 538 matches

by admin
11 Jun 2018, 08:40
Forum: General
Topic: Hi guys, i have a question about Startup conditions,please help me
Replies: 1
Views: 294

Re: Hi guys, i have a question about Startup conditions,please help me

You can have lua callback procedure trigerred by xpl variable change. If you hook it to plane tail number it's called when the plane is loaded. See the lua script that I use for xplane - https://github.com/me2d13/luamacros/blob/master/src/lmc.lua The callback is function setPlane(name) and it's regi...
by admin
08 Jun 2018, 07:58
Forum: General
Topic: Pass keypress without any manipulation
Replies: 2
Views: 340

Re: Pass keypress without any manipulation

There is no such available command in lua. What you can do is not define callback for whole device but only for specific keys/buttons. Then othe keys are not affected. You can define such specific callback function using: lmc_set_handler(name_of_device,key_number,direction_0_is_up_and_1_is_down,call...
by admin
06 Jun 2018, 08:36
Forum: General
Topic: Please help me!
Replies: 1
Views: 11271

Re: Please help me!

I think mouse support was never working properly in HidMacros.
And you are facing the situation when it doesn't work.
As development of HidMacros stopped there's nothing how you can get it working
by admin
06 Jun 2018, 08:29
Forum: General
Topic: So i need help
Replies: 1
Views: 11193

Re: So i need help

TAB can't be used as modifier (being pressed together with another key). So macro {TAB}R first sends tab (press and release) and then R. Which is probably not what you want. And there's no way in Hidmacros how to send tab together. For FSX it's better to use dedicated SimConnect interface. I think h...
by admin
06 Jun 2018, 08:26
Forum: General
Topic: need help?
Replies: 1
Views: 11330

Re: need help?

You can't with hidmacros, you can with luamacros
by admin
05 Jun 2018, 08:26
Forum: General
Topic: Covert Logitech mouse lua script
Replies: 1
Views: 320

Re: Covert Logitech mouse lua script

Those commands are not standard lua commands, seems that mouse is adding kind of library you can use.
So no, you can't use this script in luamacros
by admin
04 Jun 2018, 07:49
Forum: General
Topic: need help?
Replies: 1
Views: 11678

Re: need help?

No, trigger is always single key press. Just the macro action can send multiple keys.
Maybe you could do something with "advanced scripting", set some global variable + timestamp on first key press and check those values on second key press
by admin
04 Jun 2018, 07:47
Forum: General
Topic: Hi guys, i have a question about Syntax
Replies: 1
Views: 306

Re: Hi guys, i have a question about Syntax

string.byte is standard lua function to convert one character to its ascii code. Of course doesn't work on some "virtual names" like HOME. So yes, the easiest way is just forget string.byte, see the log what number is being printed in "not yet assigned" message and use this number directly in anothe...
by admin
31 May 2018, 08:18
Forum: General
Topic: alt + UP combination
Replies: 2
Views: 13368

Re: alt + UP combination

Try %{UP}.
If it doesn't work, the only way is luamacros and lmc_send_input
by admin
29 May 2018, 08:10
Forum: General
Topic: A quick question about open folders
Replies: 1
Views: 13032

Re: A quick question about open folders

Don't know, there's probably some windows command to execute, the (file) explorer should be regular executable. Try to google how to open folder e.g. from batch and use similar command