Désactiver la lumière du throttle warthog à chaque branchement USB. Comment faire?

Salle dedieé aux péripheriques : Joystick, palloniers, Track-Ir
Avatar de l’utilisateur

Topic author
Roger01
Nouvelle Recrue
Nouvelle Recrue
Messages : 165
Inscription : 17 avril 2017

Désactiver la lumière du throttle warthog à chaque branchement USB. Comment faire?

#1

Message par Roger01 »

Jour'

J'ai un petit "problème". Quand je branche le throttle du warthog, toutes les lumières s’allument. Je suis obligé constamment d'aller sur le logiciel de configuration de l'HOTAS pour désactiver les lumières à chaque fois. Une idée de comment avoir une désactivation permanente, sans tout couper à l’intérieur? Merci :D
Referral code Star Citizen : STAR-WSYD-HCHK
Avatar de l’utilisateur

sport02
Pilote Philanthrope
Pilote Philanthrope
Messages : 5564
Inscription : 12 août 2006

Re: Désactiver la lumière du throttle warthog à chaque branchement USB. Comment faire?

#2

Message par sport02 »

je crois qu' il n' y a pas de solution hors couper les fils
i7 6700k - ASUS Z170-A GTX1080ti - 16go DDR4 2666mhz HyperX Fury - SSD intel 330 180go - SSD Sandisk ultra II 960 Go - 2 hdd WD - Acer 27" 3D HN274HBbmiiid 1920x1080 + 2eme ecran samsung 22 " 3D - ffb2 crosoft/throttle hotas thrustmaster warthog + 2 Throttles Quadrant + rudder TPR thrustmaster/trackir 3/ son 7.1 - Volant DD osw + pédalier CSL élite fanatec - Windows 10 64bit

caramel
Mécano au sol
Mécano au sol
Messages : 583
Inscription : 21 juillet 2003

Re: Désactiver la lumière du throttle warthog à chaque branchement USB. Comment faire?

#3

Message par caramel »

Ou alors, tu as la solution à l'arrache (mais réversible), un bout de scotch noir (isolant électrique) sur chaque texte.
Avatar de l’utilisateur

BeR1
Apprenti-Mécano
Apprenti-Mécano
Messages : 350
Inscription : 08 octobre 2015

Re: Désactiver la lumière du throttle warthog à chaque branchement USB. Comment faire?

#4

Message par BeR1 »

Il y a la possibilité de lancer target avec un script qui éteint tout (à mettre dans le démarrage) mais tu auras ensuite un process target script à détruire. (ou qui restera en fond)
Je m’étais fais ça à une époque, j'essaye de retrouver si cette méthode t’intéresse.
i15-20900PQ NTM-2080TI Z990 256To RAMes
Avatar de l’utilisateur

Topic author
Roger01
Nouvelle Recrue
Nouvelle Recrue
Messages : 165
Inscription : 17 avril 2017

Re: Désactiver la lumière du throttle warthog à chaque branchement USB. Comment faire?

#5

Message par Roger01 »

Je veux bien merci, ça sera déjà ça :)
Referral code Star Citizen : STAR-WSYD-HCHK
Avatar de l’utilisateur

BeR1
Apprenti-Mécano
Apprenti-Mécano
Messages : 350
Inscription : 08 octobre 2015

Re: Désactiver la lumière du throttle warthog à chaque branchement USB. Comment faire?

#6

Message par BeR1 »

Etape 1:
créer un fichier dans un coin de ton ordi s'appelant eteindre_tout.tmc contenant :
include "target.tmh"
define LED_0_ON LED(&Throttle, LED_ONOFF, LED_CURRENT+LED0)
define LED_1_ON LED(&Throttle, LED_ONOFF, LED_CURRENT+LED1)
define LED_2_ON LED(&Throttle, LED_ONOFF, LED_CURRENT+LED2)
define LED_3_ON LED(&Throttle, LED_ONOFF, LED_CURRENT+LED3)
define LED_4_ON LED(&Throttle, LED_ONOFF, LED_CURRENT+LED4)
define LED_5_ON LED(&Throttle, LED_ONOFF, LED_CURRENT+LED5)
define LED_0_OFF LED(&Throttle, LED_ONOFF, LED_CURRENT-LED0)
define LED_1_OFF LED(&Throttle, LED_ONOFF, LED_CURRENT-LED1)
define LED_2_OFF LED(&Throttle, LED_ONOFF, LED_CURRENT-LED2)
define LED_3_OFF LED(&Throttle, LED_ONOFF, LED_CURRENT-LED3)
define LED_4_OFF LED(&Throttle, LED_ONOFF, LED_CURRENT-LED4)
define LED_5_OFF LED(&Throttle, LED_ONOFF, LED_CURRENT-LED5)
int Ber1_Throttle_LED(int allume)
{
if (allume==1) {
ActKey(PULSE+KEYON+LED_0_ON);
ActKey(PULSE+KEYON+LED_1_ON);
ActKey(PULSE+KEYON+LED_2_ON);
ActKey(PULSE+KEYON+LED_3_ON);
ActKey(PULSE+KEYON+LED_4_ON);
ActKey(PULSE+KEYON+LED_5_ON);
}
else {
ActKey(PULSE+KEYON+LED_0_OFF);
ActKey(PULSE+KEYON+LED_1_OFF);
ActKey(PULSE+KEYON+LED_2_OFF);
ActKey(PULSE+KEYON+LED_3_OFF);
ActKey(PULSE+KEYON+LED_4_OFF);
ActKey(PULSE+KEYON+LED_5_OFF);
}
}
int main()
{
Configure(&HCougar, MODE_EXCLUDED);
Configure(&Joystick, MODE_EXCLUDED);
Configure(&T16000, MODE_EXCLUDED);
Configure(&T16000L, MODE_EXCLUDED);
Configure(&LMFD, MODE_EXCLUDED);
Configure(&RMFD, MODE_EXCLUDED);
Configure(&TFRPRudder, MODE_EXCLUDED);
Configure(&TWCSThrottle, MODE_EXCLUDED);
if(Init(&EventHandle)) return 1;
SetKBRate(32, 50);
SetKBLayout(KB_FR);
Ber1_Throttle_LED(0);

}
int EventHandle(int type, alias o, int x)
{
DefaultMapping(&o, x);
}
Etape 2 sous win10 :
Créer un raccourci dans le dossier C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp
Ce raccourci contenant : "C:\Program Files (x86)\Thrustmaster\TARGET\x64\TARGETGUI.exe" -r C:\blablabla\eteindretout.tmc
Le chemin vers le fichier tmc étant à adapter selon l'etape1

Il y a mieux a faire avec un VBScript qui supprimerait le processus après l'avoir éxécuté, mais j'ai plus sous la main.

Dans tous les cas, au demarrage, les LED(et texte) se rallumeront par défaut comme au moment de l’arrêt. Donc en fait, tu te debrouilles (avec l'aide de la fonction ci dessus Ber1_Throttle_LED(0)) dans tes scripts TARGET pour éteindre tout avant de quitter, et hop.
i15-20900PQ NTM-2080TI Z990 256To RAMes
Avatar de l’utilisateur

Topic author
Roger01
Nouvelle Recrue
Nouvelle Recrue
Messages : 165
Inscription : 17 avril 2017

Re: Désactiver la lumière du throttle warthog à chaque branchement USB. Comment faire?

#7

Message par Roger01 »

Parfait merci! J'ai fait un .cmd avec :
START "" "C:\Program Files (x86)\Thrustmaster\TARGET\x64\TARGETGUI.exe" -r "D:\Jeux\DCS World OpenBeta\LightOffWarthog.tmc"

TIMEOUT /T 2

START "" taskkill /im "targetgui.exe" /f
Ca lance le truc, ça le tue 2 sec après et ça quitte tout. Nickel!
Referral code Star Citizen : STAR-WSYD-HCHK
Avatar de l’utilisateur

BeR1
Apprenti-Mécano
Apprenti-Mécano
Messages : 350
Inscription : 08 octobre 2015

Re: Désactiver la lumière du throttle warthog à chaque branchement USB. Comment faire?

#8

Message par BeR1 »

Roger01 a écrit :
jeu. mars 21, 2019 7:10 pm
Parfait merci! J'ai fait un .cmd avec :
START "" "C:\Program Files (x86)\Thrustmaster\TARGET\x64\TARGETGUI.exe" -r "D:\Jeux\DCS World OpenBeta\LightOffWarthog.tmc"

TIMEOUT /T 2

START "" taskkill /im "targetgui.exe" /f
Ca lance le truc, ça le tue 2 sec après et ça quitte tout. Nickel!
Parfait !
i15-20900PQ NTM-2080TI Z990 256To RAMes
Répondre

Revenir à « salle: Periphériques: Hotas, Joysticks, Track-IR »