When I run luamacros.exe, the version number is shown as 0.1.1.98.
When I startup X-Plane, my log.txt shows that the plugin has loaded
Code: Select all
Loaded: E:\Spel/X-Plane 11/Resources/plugins/luamacros/64/win.xpl (PetrMedek.LuaMacros.Controller).
Code: Select all
-- lmc_print_devices()
lmc_device_set_name('XPlane01','20E1235')
function lights( type )
if type == "nav" then
lmc_xpl_command('sim/lights/nav_lights_toggle')
elseif type == "bcn" then
lmc_xpl_command('sim/lights/beacon_lights_toggle')
elseif type == "taxi" then
lmc_xpl_command('sim/lights/taxi_lights_toggle')
elseif type == "strb" then
lmc_xpl_command('sim/lights/strobe_lights_toggle')
elseif type == "land" then
lmc_xpl_command('sim/lights/landing_lights_toggle')
else
end
print(type)
end
lmc_set_handler('XPlane01', function( button,direction )
if ( direction == 1 ) then
if ( button == 49 ) then
lmc_xpl_command_begin('sim/engines/engage_starters')
end
return
end
if ( button == 49 ) then
lmc_xpl_command_end('sim/engines/engage_starters')
elseif ( button == 90 ) then lights("nav")
elseif ( button == 88 ) then lights("bcn")
elseif ( button == 67 ) then lights("taxi")
elseif ( button == 86 ) then lights("strb")
elseif ( button == 66 ) then lights("land")
end
end)
But nothing happens in the sim. I've stripped away possible conflicting plugins, to no effect. I remember being able to make this work with HIDmacros in XP10, but now I'm stumped. Help? Have I misspelled something crucial?
Log.txt