Jump to content

Recommended Posts

Posted

I am trying to program my TM Warthog ENGnorm / ENGover two position switches using script.

I am trying to use:

left switch up - to turn strobe lights and nav lights to on and flash

left switch down - to switch lights off

 

right switch up - to turn landing and search light ON/EXTEND

right switch down - to turn landing and search light OFF/RETRACT

 

This is my code:

 

 

MapKey(&Throttle, EFRNORM, CHAIN (LOCK+ PULSE + R_CTL +';', D(600), PULSE+R_CTL+',', D(600), PULSE+R_CTL+'/', D(600), LOCK));

 

MapKey(&Throttle, EFROVER, CHAIN (LOCK+ PULSE + R_WIN +';' , D(600), PULSE+R_CTL+',', PULSE + R_WIN +'/', D(600), LOCK));

 

MapKey(&Throttle, EFLNORM, CHAIN (LOCK+ PULSE + R_SHIFT+'l', D(400),LOCK, LOCK+PULSE+R_WIN+R_CTL+'l' , D(400), LOCK));

 

MapKey(&Throttle, EFLOVER, CHAIN (LOCK+ PULSE + R_CTL+'l' , D(400),LOCK, LOCK+PULSE+R_SHIFT+'l' , D(400), LOCK));

 

 

or same code using USB codes:

 

MapKey(&Throttle, EFRNORM, CHAIN (LOCK+

PULSE + R_CTL +USB[0x33] , D(400),LOCK, LOCK+PULSE+R_CTL+USB[0x36], D(400), LOCK, LOCK+ PULSE+R_CTL+'/', D(400), LOCK));

MapKey(&Throttle, EFROVER, CHAIN (LOCK+

PULSE + R_WIN +USB[0x33] , D(400), LOCK, LOCK+PULSE+R_CTL+USB[0x36],D(400),LOCK, LOCK+ PULSE + R_WIN +'/', D(400), LOCK));

 

Sometimes it works, and sometimes id doesnt...I suppose it doesnt work always because so much combo keypresses in a chain?

 

How can i fix this code, to get it working?

[sIGPIC][/sIGPIC]

Pilot from Croatia

  • Recently Browsing   0 members

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