vctpil Posted October 20, 2010 Posted October 20, 2010 (edited) Hi everyone, Because what is logic for me and not logic for the cougar (!), here is a little prog : DEF X1 DELAY(1000) S1 DEF X2 S1 AND NOT X1 DEF X3 S1 AND X1 BTN X2 h BTN X3 a When I push, the "h" is displayed. When I release after 1 second, the "a" is displayed. I would like to avoid the "h" if I hold the button. This language is absolutely obscur for me. How can I work this function ? Thanks. Edited October 20, 2010 by vctpil IAMD Ryzen 9 5900X 12x 3.7 to 4.8Ghz - 32Go DDR4 3600Mhz - GeForce RTX 3080 - Samsung Odyssey G7 QLED - AIMXY
Succellus Posted October 20, 2010 Posted October 20, 2010 First, what are you trying to achieve, what you wrote seem awfully twisted to my few cougar programing knowledge. HaF 922, Asus rampage extreme 3 gene, I7 950 with Noctua D14, MSI gtx 460 hawk, G skill 1600 8gb, 1.5 giga samsung HD. Track IR 5, Hall sensed Cougar, Hall sensed TM RCS TM Warthog(2283), TM MFD, Saitek pro combat rudder, Cougar MFD.
Kuky Posted October 21, 2010 Posted October 21, 2010 I think he wants one command for long press and another command for short press, right? Of top of my head I think this is correct syntax: BTN S1 KD(X1) DELAY(1000) KU(X1) DEF X2 DLY(100) S1 NOT X1 DEF X3 X1 NOT S1 BTN X2 h BTN X3 a If this doesn't work, I'll check my profile and get correct one PC specs: Windows 11 Home | Asus TUF Gaming B850-Plus WiFi | AMD Ryzen 7 9800X3D + LC 360 AIO | MSI RTX 5090 LC 360 AIO | 55" Samsung Odyssey Gen 2 | 64GB PC5-48000 DDR5 | 1TB M2 SSD for OS | 2TB M2 SSD for DCS | NZXT C1000 Gold ATX 3.1 1000W | TM Cougar Throttle, Floor Mounted MongoosT-50 Grip on TM Cougar board, MFG Crosswind, Track IR
vctpil Posted October 21, 2010 Author Posted October 21, 2010 Hi, That works perfectly, thanks very much for the prog. There is only a syntax error concerning the delay function. Here is the correction : BTN S1 KD(X1) DLY(1000) KU(X1) DEF X2 DELAY(100) S1 NOT X1 DEF X3 X1 NOT S1 BTN X2 h BTN X3 a Thanks again. IAMD Ryzen 9 5900X 12x 3.7 to 4.8Ghz - 32Go DDR4 3600Mhz - GeForce RTX 3080 - Samsung Odyssey G7 QLED - AIMXY
Succellus Posted October 22, 2010 Posted October 22, 2010 LOl sometimes i get lost with the superposed programing (not remembering whats what) imagine if i start long press short press !!! But very nice anyway. HaF 922, Asus rampage extreme 3 gene, I7 950 with Noctua D14, MSI gtx 460 hawk, G skill 1600 8gb, 1.5 giga samsung HD. Track IR 5, Hall sensed Cougar, Hall sensed TM RCS TM Warthog(2283), TM MFD, Saitek pro combat rudder, Cougar MFD.
vctpil Posted October 22, 2010 Author Posted October 22, 2010 Hi again, This prog works, but very obscur for me. BTN S1 KD(X1) DLY(1000) KU(X1) DEF X2 DELAY(100) S1 NOT X1 DEF X3 X1 NOT S1 BTN X2 h BTN X3 a Give : a if press-release h if press-hold-release after 1 second BUT : Because BTN S1 KD(X1) DLY(1000) KU(X1) is associated with DEF X3 X1 NOT S1 (taking account the delay I suppose) and BTN X3 a so, the "h" appear (not the "a" !?!). What is the logic ? Thanks IAMD Ryzen 9 5900X 12x 3.7 to 4.8Ghz - 32Go DDR4 3600Mhz - GeForce RTX 3080 - Samsung Odyssey G7 QLED - AIMXY
Kuky Posted October 23, 2010 Posted October 23, 2010 Sorry for bit delay on answering, logic is that when you press S1 button it will enable X1 flag for duration of 1000 ms (or 1 sec). Line 2 says X2 logical flag wil be true is you press and hold S1 for more then 1 second, and line 3 says X3 flag will be true if X1 is still pressed and S1 is not... meaning if you quckly release S1 button, X1 will still be on because you've set it to 2 sec duration in 1st line. This then gives "h" if you hold S1 for 1sec, and "a" if you quick press/release S1. PC specs: Windows 11 Home | Asus TUF Gaming B850-Plus WiFi | AMD Ryzen 7 9800X3D + LC 360 AIO | MSI RTX 5090 LC 360 AIO | 55" Samsung Odyssey Gen 2 | 64GB PC5-48000 DDR5 | 1TB M2 SSD for OS | 2TB M2 SSD for DCS | NZXT C1000 Gold ATX 3.1 1000W | TM Cougar Throttle, Floor Mounted MongoosT-50 Grip on TM Cougar board, MFG Crosswind, Track IR
vctpil Posted October 23, 2010 Author Posted October 23, 2010 Really more understandable like that. And complicated for me anyway. Thanks a lot. IAMD Ryzen 9 5900X 12x 3.7 to 4.8Ghz - 32Go DDR4 3600Mhz - GeForce RTX 3080 - Samsung Odyssey G7 QLED - AIMXY
Recommended Posts