Jump to content

Recommended Posts

Posted

Hi All,

 

its probably me being really dumb, but I cannot find some useful piece of info.

 

I've started using TARGET with scripts. I use the combined mode, and so by default (if I get this right) all 32 slots of the virtual DX combined device are assigned to push buttons on the throttle and stick, and the flip switches on the throttle won't do anything until programmed in a script. I'm fine with that, I can assign the rest of the switches to keypresses by scripting this away.

 

Now, the TARGET bundle comes with documents, two of which are PDFs showing the "script button names" of each control on both stick and throttle (EFRNORM, S4, etc.). But there are throttle buttons which names don't appear there: APU switch positions, and the two hidden buttons inside the throttle casing; these actually disconnect when the handles are moved from the OFF to IDLE stance (i.e. when throttle is at OFF, these buttons are continuously pressed).

 

I figured the APU-related names could be "APUON" and "APUOFF", which they are, luckily enough.

 

As to the buttons for the OFF to IDLE handles positions, I'm not even going to start guessing.

 

What are those two "TARGET script names" used for the L and R throttle handles' "OFF to IDLE" buttons?

Posted
As to the buttons for the OFF to IDLE handles positions, I'm not even going to start guessing.

 

What are those two "TARGET script names" used for the L and R throttle handles' "OFF to IDLE" buttons?

 

Your guessing is really close!

Try IDLELON and IDLERON. :)

Posted

Thanks!

 

Everything programmed and rolling now! I come from Saitek's SST world, and I must say TM's TARGET really is powerful after the syntax starts sinking in.

 

Later this afternoon, I realized that the one place to get all names is actually the GUI version of TARGET, which provides with nice little 3D models of the devices, plus active position markers on every control.

Posted
Later this afternoon, I realized that the one place to get all names is actually the GUI version of TARGET, which provides with nice little 3D models of the devices, plus active position markers on every control.

 

True... But:

Sooner or later you'll leave the GUI and dive into the deep water of coding TARGET. :music_whistling::thumbup:

Have fun!

Posted

I only tried the GUI for 15 minutes. It's not as badly done as many people seem to say. But still I can't see why someone would rather use it than writing their own script. I've a tiny experience in Java, so a line of code or two doesn't scare me. That being said, even without any coding experience, I would still always recommend to forget the GUI and start scripting.

 

Only gripe I have is the script editor's reverse video style. I might be aging already, but pure white monospace text on pure black background is torture to my eyes and nervous system after minute 1.

 

Any text editor will do, though, unless you can't live without syntax highlight. Do you use TM's editor?

Posted

Huh..I didn't even know they had their own editor. Not that I ever looked to hard! I use vim or UltraEdit depending on what I'm doing. But I heard good things about Notepad++ as well.

 

hsb

hsb

HW Spec in Spoiler

---

 

i7-10700K Direct-To-Die/OC'ed to 5.1GHz, MSI Z490 MB, 32GB DDR4 3200MHz, EVGA 2080 Ti FTW3, NVMe+SSD, Win 10 x64 Pro, MFG, Warthog, TM MFDs, Komodo Huey set, Rverbe G1

 

Posted
Do you use TM's editor?

Jup...

As these are not big projects, it's OK for me. (Kinda lazy I am... ;))

 

But actually I'm thinking of 'training' Notepad++ for TARGET.

But I think it's not worth the time and afterwards there's still the problem how to compile the source after this. I think there's no way to avoid the integrated editor in any way. But maybe that I'm wrong?

Posted

Oh I really meant a tool to compose the scripts. I always paste the text in TM's editor to compile. There's no other way AFAIK. But I'd also be interested to know if there's some other way to compiling.

Posted
Oh I really meant a tool to compose the scripts. I always paste the text in TM's editor to compile. There's no other way AFAIK. But I'd also be interested to know if there's some other way to compiling.

 

You can edit in any proper coding editor ( I use Notepad++ ), but you can only 'compile' or run from within the Target environment.

ASUS ROG Maximus VIII Hero, i7-6700K, Noctua NH-D14 Cooler, Crucial 32GB DDR4 2133, Samsung 950 Pro NVMe 256GB, Samsung EVO 250GB & 500GB SSD, 2TB Caviar Black, Zotac GTX 1080 AMP! Extreme 8GB, Corsair HX1000i, Phillips BDM4065UC 40" 4k monitor, VX2258 TouchScreen, TIR 5 w/ProClip, TM Warthog, VKB Gladiator Pro, Saitek X56, et. al., MFG Crosswind Pedals #1199, VolairSim Pit, Rift CV1 :thumbup:

Posted
You can edit in any proper coding editor ( I use Notepad++ ), but you can only 'compile' or run from within the Target environment.

Does Notepad++ retain syntax highlight?

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...