Search found 567 matches

by admin
25 Dec 2018, 22:40
Forum: General
Topic: Mechanical Push Button in Xplane Cockpit mapping
Replies: 2
Views: 259

Re: Mechanical Push Button in Xplane Cockpit mapping

Solution 1) remember the "state" in some lua variable and based on this send the oposit
Solution 2) instead of remebering the value in lua var, read the dataref first on every (appropriate) key press and send the other value
by admin
18 Dec 2018, 09:22
Forum: General
Topic: lmc_get_button
Replies: 1
Views: 247

Re: lmc_get_button

ad 1) this should work, just make sure you define isF2 in global scope (not inside f2 handler only). I'm using such 'global' variables in my scripts, you can check lmc.lua in source repo
ad 2) as the message says - lmc_get_button is only for game devices (joystick) buttons, not for keyboards
by admin
11 Dec 2018, 09:13
Forum: Support - bugs
Topic: Hid macros is not working while using powermixer with a midi controller.
Replies: 4
Views: 549

Re: Hid macros is not working while using powermixer with a midi controller.

Luamacros but you need to know how to write lua scripts.
Older version of hidmacros can be found at download page. MIDI was added in 2.3, so try 2.2
by admin
10 Dec 2018, 09:24
Forum: Support - bugs
Topic: Hid macros is not working while using powermixer with a midi controller.
Replies: 4
Views: 549

Re: Hid macros is not working while using powermixer with a midi controller.

Unfortunately not. Hidmacros has MIDI input as "experimental feature" and seems it claims the interface exclusively so no other application with MIDI support can run.
As I can not build Himacros any more this won't be changed/fixed.
by admin
05 Dec 2018, 20:43
Forum: General
Topic: Problem Delay script
Replies: 9
Views: 1068

Re: Problem Delay script

Code: Select all

print(lmc_get_window_title())
Assign to variable, do some ifs, just scripting.

ad 1&2) no, not possible. Maybe if lua can somehow get list of running apllications (processes) you could write some logic to script. But no direct support in luamacros
by admin
03 Dec 2018, 17:31
Forum: General
Topic: Problem Delay script
Replies: 9
Views: 1068

Re: Problem Delay script

For 3) use command line parameter -r and see viewtopic.php?f=12&t=270
by admin
30 Nov 2018, 09:00
Forum: General
Topic: Problem Delay script
Replies: 9
Views: 1068

Re: Problem Delay script

Sorry, you need some technical and scripting knowledge to use luamacros. You have all the information you need in that link.
by admin
28 Nov 2018, 09:02
Forum: General
Topic: Problem Delay script
Replies: 9
Views: 1068

Re: Problem Delay script

The guide is for luamacros as your question is in part of forum for luamacros.
In hidmacros you can't do such a thing
by admin
08 Nov 2018, 09:15
Forum: HOW-TOs and documentation
Topic: simple auto key presser with hidmacros
Replies: 2
Views: 800

Re: simple auto key presser with hidmacros

I would say the sleep mode is controlled by keyboard itself on hardware level, you cannot trick it in windows by software.