Cmptohocah Posted November 19, 2020 Share Posted November 19, 2020 (edited) What? FC3 aircraft don't have programmable countermeasures like some full-fidelity modules. This script enables users to have a way of programmatically dispensing CM by using their joystick. How? By using an application called "AutoHotkey" which can be programmed to send keystrokes to the game and control the CM dispensing. "AutoHotkey" can be programmed via the "ahk" scripts (located in the attachment). Requirements Windows machine AutoHotkey Text editor Joystick/s Use Install "AutoHotkey" Download and unzip the scripts from the attachment Find your joystick's ID number and the button number (more details in the appendix) * Edit the ".ahk" files in order to configure the dispensing programs and save changes (edit program settings and joystick ID and buttons) Compile the script to ".exe" files by right-clicking on the appropriate ".ahk" files and selecting Compile Script Run the compiled files to start the scripts Press and hold the appropriate joystick button/buttons to start the dispensing sequence. Release the button to stop dispensing. Options (version 0.0.1) Time between sequences - on line #12 there is a number representing the time between two sequences in milliseconds. Adjust as desired. For example, to set 2s delay (pause) enter the number 2000 Number of bursts - on line #28 there is a number that sets how many bursts (releases) should happen per sequence. For example, to release countermeasures in pairs of 4, set this number to 4 Time between bursts - on line #35 there is a number representing the time between the releases within a sequence, in milliseconds. For example, to set the release time to 0.1s, set this number to 100 * - to detect the joystick ID number as well as the button number you can use this test script here: https://www.autohotkey.com/docs/scri...m#JoystickTest On some machines the auto-detection of joystick ID doesn't work, so you need to manually change the JoystickNumber variable in order to correctly identify the button number. Once this is done the scripts can be configured by changing the entries which have the text 2Joy2 or 2Joy3. First number is the Joystick ID number and the second number is its button number. For example 3Joy5 means: Joystick ID 3, button number 5. cm-dispenser.zip Edited November 19, 2020 by Cmptohocah Added tags. 1 Cmptohocah=CMPTOHOCAH Link to comment Share on other sites More sharing options...
dundun92 Posted November 19, 2020 Share Posted November 19, 2020 Nice! I use a similar-ish script for when I fly the Su-27 and F-15, its really helpful. Eagle Enthusiast, Fresco Fan. Patiently waiting for the F-15E. Clicky F-15C when? HP Z400 Workstation Intel Xeon W3680 (i7-980X) OC'd to 4.0 GHz, EVGA GTX 1060 6GB SSC Gaming, 24 GB DDR3 RAM, 500GB Crucial MX500 SSD. Thrustmaster T16000M FCS HOTAS, DIY opentrack head-tracking. I upload DCS videos here https://www.youtube.com/channel/UC0-7L3Z5nJ-QUX5M7Dh1pGg Link to comment Share on other sites More sharing options...
Recommended Posts