Jump to content

Sign in to follow this  
caleb1

L:VARS in P3D v4 Without FSUIPC or SPAD.neXt

Recommended Posts

Does anyone know how to program a L:VAR to a keyboard assignment and/or a joystick button in P3D v4.1 without needing to use FSUIPC or SPAD.neXt?

 

Thanks in advance.


Caleb Byers

PC: HP Envy 750, Intel Core i7 6700 @ 3.4 GHz (max 4.0 GHz), 24GB RAM, Nvidia GeForce GTX 745 with 4GB Memory, 2TB SSHD Windows 10 Home 64 bit.

Simulators:  Prepar3D v3.4, Prepar3D v4.5, FSX:SE, FSX:Gold Edition

Using the FSX Deluxe Edition SDK SP2 for development.

Share this post


Link to post

Replying to get the thread to the top of the list. :smile:


Caleb Byers

PC: HP Envy 750, Intel Core i7 6700 @ 3.4 GHz (max 4.0 GHz), 24GB RAM, Nvidia GeForce GTX 745 with 4GB Memory, 2TB SSHD Windows 10 Home 64 bit.

Simulators:  Prepar3D v3.4, Prepar3D v4.5, FSX:SE, FSX:Gold Edition

Using the FSX Deluxe Edition SDK SP2 for development.

Share this post


Link to post

XMLTools using the XMLKEYS class for the keyboard.. 


Roman_Full_combo_AVSIM_2.png?dl=1  FS RTWR   SHRS F-111   JoinFS Host/Client 

 

Yamaha CR 1000/JBL 2500, AMD 965 BE OC'd @ 3.88, RipJaw 2x4GB 1600 CL7, Gigabyte GTX-1070 OC 8GB, Asus M4A87TD EVO (AMD 870), Samsung 850 EVO 256GB & 1TB SSDs, WD 1T & 500G Black, 19" & 32" LCD, Win7 Pro 64bit, TMaster T-Flight HOTAS, FSX/FS9, FSUIPC / LUA, FSRealWX Pro, PlanG, JoinFS, LittleNavMap
Copilot - Samantha the "Hound"  RIP 😞        
       samantha.jpg?dl=1

 

Share this post


Link to post

No other way I know of, other then programming it in your own XML gauge of course.

The XMLKEYS class of XMLTools, merely allows you to trap keys and assign events (commands) to it; not write data to an L:var.
(as far as I know)

 

Rob

Share this post


Link to post

You could program the joystick button to a standard P3d control that's not used in that particular aircraft, say cabin lights for example, then write a small xml gauge to set the L:var depending on the state of the cabin light. 

Of course you would have to make sure it's something unused which may vary from aircraft to aircraft. 


Dave Garwood.

Share this post


Link to post
8 hours ago, rcbarend said:

No other way I know of, other then programming it in your own XML gauge of course.

The XMLKEYS class of XMLTools, merely allows you to trap keys and assign events (commands) to it; not write data to an L:var.
(as far as I know)

 

Rob

XMLKEYS works with XML scripts, not plain events. So yes, data can be assigned to LVars as whatever script content is executed.

Tom

Share this post


Link to post
15 hours ago, spokes2112 said:

XMLTools using the XMLKEYS class for the keyboard.. 

Thanks for the replies.

Would anyone be able to point me in the direction of a tutorial explaining how to use XMLTools to assign an L:VAR to a button or key?

 

Thanks.


Caleb Byers

PC: HP Envy 750, Intel Core i7 6700 @ 3.4 GHz (max 4.0 GHz), 24GB RAM, Nvidia GeForce GTX 745 with 4GB Memory, 2TB SSHD Windows 10 Home 64 bit.

Simulators:  Prepar3D v3.4, Prepar3D v4.5, FSX:SE, FSX:Gold Edition

Using the FSX Deluxe Edition SDK SP2 for development.

Share this post


Link to post

Just download XMLTools' desired version.

There is a pdf with details on how XMLKEYS class works, and another pdf containing an example of XMLKEYS in action. 

 

Tom

 

Share this post


Link to post
10 hours ago, taguilo said:

XMLKEYS works with XML scripts, not plain events. So yes, data can be assigned to LVars as whatever script content is executed.

Tom

Hi Tom,

Of course you are right.
What I was trying to say that even with XMLKEYS, you still need to create an XML gauge that includes the script for XMLKEYS.
Or have I missed something ?

Best, Rob

 

Share this post


Link to post
16 hours ago, taguilo said:

Just download XMLTools' desired version.

There is a pdf with details on how XMLKEYS class works, and another pdf containing an example of XMLKEYS in action. 

 

Tom

 

Thanks.

So I am thinking XMLTools might be a little complicated for right now.  I think I might just get Spad.neXt. :smile:

 

Thanks for your help everyone.


Caleb Byers

PC: HP Envy 750, Intel Core i7 6700 @ 3.4 GHz (max 4.0 GHz), 24GB RAM, Nvidia GeForce GTX 745 with 4GB Memory, 2TB SSHD Windows 10 Home 64 bit.

Simulators:  Prepar3D v3.4, Prepar3D v4.5, FSX:SE, FSX:Gold Edition

Using the FSX Deluxe Edition SDK SP2 for development.

Share this post


Link to post
12 hours ago, caleb1 said:

Thanks.

So I am thinking XMLTools might be a little complicated for right now.  I think I might just get Spad.neXt. :smile:

 

Thanks for your help everyone.

First, I must admit I don't have a clue what "Spad.next" is.

I seriously doubt that it's easier to solve your problem ("setting Lvars with keystrokes / joystick button presses) with "Spad.next" compared to a small XML gauge with a script for XMLKEYS.
But, as an XML programmer, I'm biassed ...Lol

And I DO realise that percieved "complexity" all depends on what one allready knows.

Success ....

Rob
 

.
 

Share this post


Link to post
On 12/16/2017 at 7:26 PM, rcbarend said:

First, I must admit I don't have a clue what "Spad.next" is.

I seriously doubt that it's easier to solve your problem ("setting Lvars with keystrokes / joystick button presses) with "Spad.next" compared to a small XML gauge with a script for XMLKEYS.
But, as an XML programmer, I'm biassed ...Lol

And I DO realise that percieved "complexity" all depends on what one allready knows.

Success ....

Rob
 

.
 

Spad.next is a program for hardware.  If I am not mistaken, it will easily allow you to assign an l:var to a button on hardware.  I might also consider doing an XML gauge for this.   Thanks.


Caleb Byers

PC: HP Envy 750, Intel Core i7 6700 @ 3.4 GHz (max 4.0 GHz), 24GB RAM, Nvidia GeForce GTX 745 with 4GB Memory, 2TB SSHD Windows 10 Home 64 bit.

Simulators:  Prepar3D v3.4, Prepar3D v4.5, FSX:SE, FSX:Gold Edition

Using the FSX Deluxe Edition SDK SP2 for development.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    18%
    $4,700.00 of $25,000.00 Donate Now
×
×
  • Create New...