Search found 9 matches

by russell458
26 Dec 2018, 14:06
Forum: General
Topic: Mechanical Push Button in Xplane Cockpit mapping
Replies: 2
Views: 329

Re: Mechanical Push Button in Xplane Cockpit mapping

Good day thank you for the response. I have tried using xpl_get but I really am not experienced enough in lua. I mapped datarefs that simply toggle the switch on and off with a single button, but im lucky i got that far. Would you kindly be able to write one of your solutions out for me, with that I...
by russell458
25 Dec 2018, 00:15
Forum: General
Topic: Mechanical Push Button in Xplane Cockpit mapping
Replies: 2
Views: 329

Mechanical Push Button in Xplane Cockpit mapping

Having trouble with my FF757.. Because the datarefs are a little different from that of the regular Xplane ones that "toggle" a switch. 757 dataref for a Logo button anim/52/buttom When the logo button is not depressed and the light is off the dataref is "elseif (button == string.byte('5')) then lmc...
by russell458
02 Apr 2018, 18:22
Forum: General
Topic: Xplane 11 Function and Numpad Keys not working
Replies: 12
Views: 3644

Re: Xplane 11 Function and Numpad Keys not working

Admin, Question, I have been practising luamacro scripts and it has been going great for the xpl_commands. However for datarefs I am struggling. I have found HIDmacros help but it doesn't translate to luamacros. For my IXEG 737-300, There are limited commands, but it has a dataref illustrated in its...
by russell458
23 Mar 2018, 18:09
Forum: General
Topic: Xplane 11 Function and Numpad Keys not working
Replies: 12
Views: 3644

Re: Xplane 11 Function and Numpad Keys not working

Alright,
I have everything working!

Other than a single button and that is CMD A autopilot as NUMPAD 0.
In fact I cannot even get the print elseif command to populate correct value.
by russell458
23 Mar 2018, 17:05
Forum: General
Topic: Xplane 11 Function and Numpad Keys not working
Replies: 12
Views: 3644

Re: Xplane 11 Function and Numpad Keys not working

It would seem that num lock may be an issue? Some keys do not show a value when pressed, others will but only with num lock on, others only with num lock off?

When I press numlock on my 1st keyboard, the num lock light illuminates on my upper keyboard as well?
by russell458
23 Mar 2018, 15:57
Forum: General
Topic: Xplane 11 Function and Numpad Keys not working
Replies: 12
Views: 3644

Re: Xplane 11 Function and Numpad Keys not working

So I switched from string.byte to the button == commands The commands in bold work, all else do not. elseif (button == 112) then lmc_xpl_command('laminar/B738/push_button/master_caution1') elseif (button == 98) then lmc_xpl_command('laminar/B738/autopilot/n1_press') elseif (button == 96) then lmc_xp...
by russell458
23 Mar 2018, 15:05
Forum: General
Topic: Xplane 11 Function and Numpad Keys not working
Replies: 12
Views: 3644

Re: Xplane 11 Function and Numpad Keys not working

Thanks for the reply I will try when I'm off work. One last request, as you can see towards the top of the script, some buttons mean switch down, and ive tried to use ctrl+the button to make the switch go up. Useful for turning stuff off. I have tried the command found in hidmacros documentation to ...
by russell458
23 Mar 2018, 12:33
Forum: General
Topic: Xplane 11 Function and Numpad Keys not working
Replies: 12
Views: 3644

Re: Xplane 11 Function and Numpad Keys not working

@admin
My apologies, thanks for your knowledgeable reply, I really don't understand what that means though..
by russell458
23 Mar 2018, 04:35
Forum: General
Topic: Xplane 11 Function and Numpad Keys not working
Replies: 12
Views: 3644

Xplane 11 Function and Numpad Keys not working

Hey guys, I am a noob at this stuff, here is the script I have compiled so far. All commands are working, however any commands listed as a function key F1 F2 F3 ect as well as any Numpad keys are not working. I have tried scripting the commands that work with other keys to the numpad or function key...