goliat26 Posted May 18, 2023 Posted May 18, 2023 Hello. It is possible to set up 2 controller buttons to active 1 action? For example if i have Autopilot Select Swtich on first position and press Autopilot Engage i want to press A button on keyboard and if i have Autopilot Select Swtich on second position and again press Autopilot Engage i want to press B button on keyboard. Is it possible :)? Second question.. Is it Disengage Autopilot separated button or what?
Trigati Posted May 18, 2023 Posted May 18, 2023 Not sure I fully understand what you are asking as you mention 2 buttons but 1 action then talk about 1 button having 2 different actions based on the position of a different button?Either way, you can do either. The Target Script programming guide has a great example of how the AP engage button can send a different key press based on the position of the Autopilot 3 way selector switch. Away from my pc right now but find the PDF on the TM site and search through it, should be somewhere in the advanced section.Sent from my iPhone using Tapatalk
goliat26 Posted May 19, 2023 Author Posted May 19, 2023 Yee i see it now. I will try it after work, thanks man. Please tell me one more thing. Is Autopilot Disengage another function than Engage? Is any long time press or what?
Trigati Posted May 19, 2023 Posted May 19, 2023 That’s an odd one as it is shown as 2 separate hardware triggers in the TM gui software but it’s pretty pointless unless you want to trigger one action on press and a different action on release….which you can do on any button with the Target Mapkey and MapkeyR combination anyway.Sent from my iPhone using Tapatalk
goliat26 Posted May 19, 2023 Author Posted May 19, 2023 34 minutes ago, Trigati said: That’s an odd one as it is shown as 2 separate hardware triggers in the TM gui software but it’s pretty pointless unless you want to trigger one action on press and a different action on release….which you can do on any button with the Target Mapkey and MapkeyR combination anyway. Sent from my iPhone using Tapatalk Action on release is useless in my situation. One click will acttivate AP on press and deactivate AP on release :D. Unless can i run release action only when button was pressed for 1-2 seconds?
Trigati Posted May 19, 2023 Posted May 19, 2023 Yeah, APDIS button is pointless. To do what you want I suggest the TEMPO function. Which send one action in short press and a different one on long press (length of press can be set in milliseconds).Sent from my iPhone using Tapatalk 1
goliat26 Posted May 19, 2023 Author Posted May 19, 2023 (edited) I have only one more question :). If i want to use T.A.R.G.E.T but only for few buttons, have i to set up all axis rest of buttons etc? Or can i use few buttons as normal buttons and rest of them as virtual? Edited May 19, 2023 by goliat26
Trigati Posted May 19, 2023 Posted May 19, 2023 Pretty much yes.I dint like using it to send keyboard commands so I set every switch:button etc to send a DX button…and some are just pulses, some always on till release (standard) and some with TEMPO or other things like the AP function.I recommend the code that allows it to send more than 32 DX buttons, it’s here in the forum somewhere. But it means everything can be used as flexible as you want.The only thing I’ve never managed to get Target to do is send a different action on double tap…but apart from that it’s worth a little time to setup a simple, generic alacrity of your own.Sent from my iPhone using Tapatalk
goliat26 Posted May 19, 2023 Author Posted May 19, 2023 Yes but i mean is it necessary to declare all buttons/axis in code if i want to use it as normal axis/button without additional functionality?
Trigati Posted May 19, 2023 Posted May 19, 2023 Yeah, any button/action that is not declared in the script does nothing once the script runs.
goliat26 Posted May 19, 2023 Author Posted May 19, 2023 Ok so if i want to use scripts only for 3 buttons, i must declare all of buttons and axis :/.Ok thanks.
Trigati Posted May 19, 2023 Posted May 19, 2023 If it really is only a few buttons you want to be special something like joystick gremlin might be a better option for you. I dont use it but lots of people do and swear it’s the bestSent from my iPhone using Tapatalk
goliat26 Posted May 19, 2023 Author Posted May 19, 2023 I "only" have to learn how to just pass the axis/button to the game without any changes on this. It cannot be hard :D.
goliat26 Posted May 19, 2023 Author Posted May 19, 2023 (edited) I have one more question... How to send 2 keystrokes from one button press. I tried EXEC with two ActKey functions and CHAIN function but both make: key a press, key b press, key a release, key b release. I want sequence like this: key a press, key a release, key a press, key a release. Aaaa ok i solve it by add delay function beteween keystrokes :). Sorry for spamming. Edited May 19, 2023 by goliat26
goliat26 Posted May 19, 2023 Author Posted May 19, 2023 6 hours ago, Trigati said: I dint like using it to send keyboard commands so I set every switch:button etc to send a DX button…and some are just pulses, some always on till release (standard) and some with TEMPO or other things like the AP function. I recommend the code that allows it to send more than 32 DX buttons, it’s here in the forum somewhere. But it means everything can be used as flexible as you want. Why you recomend use DX buttons instead of keyboard keys? Is anywhere list of DX numbers of buttons on joystick and throttle?
_Hoss Posted May 19, 2023 Posted May 19, 2023 You are talking TEMPO presses, short/long on same button. There is also Sequence and Chain presses. You'll need to know Script for TEMPO, but Sequence and chain are done with GUI menu. Sequence = different command each time you press the button Chain = press button once and a Chain of events takes place over a period of time. Like anything, the more time you spend experimenting with it the better you get at it. The Event Log is your friend while setting up your profile 1 hour ago, goliat26 said: Why you recomend use DX buttons instead of keyboard keys? Is anywhere list of DX numbers of buttons on joystick and throttle? Sendenion's 128DX SCRIPT will work great, but you are still going to need know how to load it in TARGET SCRIPT launcher. No pain no gain. Sempre Fortis
Trigati Posted May 19, 2023 Posted May 19, 2023 Why you recomend use DX buttons instead of keyboard keys? Is anywhere list of DX numbers of buttons on joystick and throttle?Main reason is so that a button on the device can more easily be mapped/bound to different things in different games/modules using a single script. But if you set it to a keystroke it will only be that keystroke.For example, F18 AA mode is ‘1’ and AG is ‘2’ on the keyboard but in the F14 those two keys switch between pilot and RIO seats rather than switch the HUD mode AA or AG.Sent from my iPhone using Tapatalk
goliat26 Posted May 19, 2023 Author Posted May 19, 2023 (edited) 1 hour ago, _Hoss said: You are talking TEMPO presses, short/long on same button. There is also Sequence and Chain presses. You'll need to know Script for TEMPO, but Sequence and chain are done with GUI menu. Sequence = different command each time you press the button Chain = press button once and a Chain of events takes place over a period of time. Like anything, the more time you spend experimenting with it the better you get at it. The Event Log is your friend while setting up your profile Sendenion's 128DX SCRIPT will work great, but you are still going to need know how to load it in TARGET SCRIPT launcher. No pain no gain. Yes now i know everything of that, thanks:). Now i use flag and few if's to realise engaging proper AP mode bases on 3-way AP select switch and disengage on next click:). I setup flaps mechanism base on 3-way flaps switch too. Landing position on bottom, off on mid and normal flaps on high. Of course all of that i use in FC3 plane - SU-25t. 1 hour ago, _Hoss said: Sendenion's 128DX SCRIPT will work great, but you are still going to need know how to load it in TARGET SCRIPT launcher. No pain no gain. But why DX buttons are better than keystrokes :)? 5 minutes ago, Trigati said: Main reason is so that a button on the device can more easily be mapped/bound to different things in different games/modules using a single script. But if you set it to a keystroke it will only be that keystroke. For example, F18 AA mode is ‘1’ and AG is ‘2’ on the keyboard but in the F14 those two keys switch between pilot and RIO seats rather than switch the HUD mode AA or AG. Yes its true. But if i create script for one plane (su-25t) with custom logic on few buttons, is it important to use DX buttons? I can exclude config of simple buttons to another file then import it in all of my scripts and its good idea:). Edited May 19, 2023 by goliat26
Lange_666 Posted May 20, 2023 Posted May 20, 2023 13 hours ago, goliat26 said: But why DX buttons are better than keystrokes? Because you can only send one keystroke at the same time, just try it with your keyboard. If you press q and w together, you get qwwwwwwwwww or wqqqqqqqqqqqqqq depending on what key you pressed first (or last). It's either q or w. With DX you can output all of them at the same time. Win11 Pro 64-bit, Ryzen 5800X3D, Corsair H115i, Gigabyte X570S UD, EVGA 3080Ti XC3 Ultra 12GB, 64 GB DDR4 G.Skill 3600. Monitors: LG 27GL850-B27 2560x1440 + Samsung SyncMaster 2443 1920x1200, HOTAS: Warthog with Virpil WarBRD base, MFG Crosswind pedals, TrackIR4, Rift-S, Elgato Streamdeck XL. Personal Wish List: A6 Intruder, Vietnam theater, decent ATC module, better VR performance!
goliat26 Posted May 20, 2023 Author Posted May 20, 2023 11 minutes ago, Lange_666 said: Because you can only send one keystroke at the same time, just try it with your keyboard. If you press q and w together, you get qwwwwwwwwww or wqqqqqqqqqqqqqq depending on what key you pressed first (or last). It's either q or w. With DX you can output all of them at the same time. Good reason but only if button press is not as pulse press :). I dont tested it but i think that if you bind APENG to cannon fire and LDGH for gear (for example) then if you push and hold APENG then press LDGH, i think that cannon dont stop firing.
Recommended Posts