hassata Posted December 5, 2010 Posted December 5, 2010 Is it possible to assign a DX button press to the PTT Arm button in VAC, or does it have to be one of the keystrokes in the drop down menu? Thanks [sIGPIC][/sIGPIC]
hassata Posted December 5, 2010 Author Posted December 5, 2010 Posted there, still no response. Did a search, and came back with gamepads being no go, so I assume I'm sh*t out of luck :( [sIGPIC][/sIGPIC]
Oakes Posted December 6, 2010 Posted December 6, 2010 Nope. Use Autohotkey for this: http://www.autohotkey.com/ For example here is how to use a joybutton to send the b key: ; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: A.N.Other <myemail@nowhere.com> ; ; Script Function: ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder) ; #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. 1Joy1:: Send, [color=Magenta]{b down}[/color] ; Sends b press to the application SetTimer, WaitForButtonUp1, 10 return WaitForButtonUp1: if GetKeyState("1Joy1") ; The button is still, down, so keep waiting. return ; Otherwise, the button has been released. Send, [color=Magenta]{b up}[/color] ; Sends b release to the application SetTimer, WaitForButtonUp1, off return1Joy1 => First Joystick in the windows list (2 => second joystick and so on) Joystickbutton number You need to change the {b down} and {b up} to suit your application. Note: Your application/game etc will still see the joystick button being pressed => you need to make sure that this is unassigned in the application/games et. /Oakes 1
hassata Posted December 17, 2010 Author Posted December 17, 2010 Thanks Oakes-I'd rather have this running in the background then TARGET, since I only need to assign one button. [sIGPIC][/sIGPIC]
WarriorX Posted December 17, 2010 Posted December 17, 2010 Nope. Use Autohotkey for this: http://www.autohotkey.com/ For example here is how to use a joybutton to send the b key: ; AutoHotkey Version: 1.x ; Language: English ; Platform: Win9x/NT ; Author: A.N.Other <myemail@nowhere.com> ; ; Script Function: ; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder) ; #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. 1Joy1:: Send, [color=Magenta]{b down}[/color] ; Sends b press to the application SetTimer, WaitForButtonUp1, 10 return WaitForButtonUp1: if GetKeyState("1Joy1") ; The button is still, down, so keep waiting. return ; Otherwise, the button has been released. Send, [color=Magenta]{b up}[/color] ; Sends b release to the application SetTimer, WaitForButtonUp1, off return1Joy1 => First Joystick in the windows list (2 => second joystick and so on) Joystickbutton number You need to change the {b down} and {b up} to suit your application. Note: Your application/game etc will still see the joystick button being pressed => you need to make sure that this is unassigned in the application/games et. /Oakes One question Oakes, Can this app duplicate a key that is held down as long as the assigned joystick key is held down? I would like to use this to run a PTT key. [sIGPIC][/sIGPIC] "Is that you John Wayne?.......Is this me?" Full Metal Jacket //My Mission Data Card//My Cold Start Checklist //Clearing a Hung Store Tutorial //CDU Offset//Asterisk Error Correction Procedure//JTAC UTM Coordinate Entry Tutorial//JTAC 9 Line Lat Long Coordinate Entry Tutorial
Sarge55 Posted December 17, 2010 Posted December 17, 2010 Warrior, I assigned the "Mic" push button on my TMWH for PTT (TS3) and it works great. I'm at work right now but there is a thread by one of the fellows that lists how you have to have your buttons on the throttle set up for this to work. IIRC it's just setting all the ones that are three position to the center. [sIGPIC][/sIGPIC] i7 10700K OC 5.1GHZ / 500GB SSD & 1TB M:2 & 4TB HDD / MSI Gaming MB / GTX 1080 / 32GB RAM / Win 10 / TrackIR 4 Pro / CH Pedals / TM Warthog
WarriorX Posted December 17, 2010 Posted December 17, 2010 Thanks Sarge, I know of that workaround, but I can not use VAC at the moment as I am having technical difficulty with the registration and UAC. I have been working with Ron, and am very thankful for his patience, but I have not had much luck. So I am falling back on my old copy of Game Commander 3 until things get worked out with VAC. I need a PTT for GC3. GC3 will not see a DX key press, so it can not be used as an assigned PTT key. AutoHotKey seems like a great solution, but only if it can replicate a held key. [sIGPIC][/sIGPIC] "Is that you John Wayne?.......Is this me?" Full Metal Jacket //My Mission Data Card//My Cold Start Checklist //Clearing a Hung Store Tutorial //CDU Offset//Asterisk Error Correction Procedure//JTAC UTM Coordinate Entry Tutorial//JTAC 9 Line Lat Long Coordinate Entry Tutorial
WarriorX Posted December 18, 2010 Posted December 18, 2010 Auto Key will replicate a held key. Autokey script works great. In case anyone else wants to know the details: WH Throttle Mic Switch UP is button #3. I had to assign the WH Throttle as the Preferred Device in older games to get AutoKey Script to work. (Search for USB Game Controllers, then select the WH Throttle, then select Advanced Button, then choose the WH Throttle from the drop down menu) Open and name a new script for AutoHotKey Here is my script for using the ScrollLock key as my PTT (paste it below the default script text) 1Joy3:: Send, {ScrollLock down} SetTimer, WaitForButtonUp3, 10 return WaitForButtonUp3: if GetKeyState("1Joy3") return Send, {ScrollLock up} SetTimer, WaitForButtonUp3, off return Save and then right click script and hit Compile. This will create a new item where you saved the script. The new item will have the same name as your script, but now will have a green H. Run that as Administrator and then it will be registered in the game. [sIGPIC][/sIGPIC] "Is that you John Wayne?.......Is this me?" Full Metal Jacket //My Mission Data Card//My Cold Start Checklist //Clearing a Hung Store Tutorial //CDU Offset//Asterisk Error Correction Procedure//JTAC UTM Coordinate Entry Tutorial//JTAC 9 Line Lat Long Coordinate Entry Tutorial
hassata Posted March 12, 2011 Author Posted March 12, 2011 Thanks Oakes and Warrior-got VAC and and the Wh playing nice by using HK. [sIGPIC][/sIGPIC]
CubPilot Posted March 14, 2011 Posted March 14, 2011 Must be missing something, won't work for me Auto Key will replicate a held key. Autokey script works great. In case anyone else wants to know the details: WH Throttle Mic Switch UP is button #3. I had to assign the WH Throttle as the Preferred Device in older games to get AutoKey Script to work. (Search for USB Game Controllers, then select the WH Throttle, then select Advanced Button, then choose the WH Throttle from the drop down menu) Open and name a new script for AutoHotKey Here is my script for using the ScrollLock key as my PTT (paste it below the default script text) 1Joy3:: Send, {ScrollLock down} SetTimer, WaitForButtonUp3, 10 return WaitForButtonUp3: if GetKeyState("1Joy3") return Send, {ScrollLock up} SetTimer, WaitForButtonUp3, off return Save and then right click script and hit Compile. This will create a new item where you saved the script. The new item will have the same name as your script, but now will have a green H. Run that as Administrator and then it will be registered in the game. 1.WH Throttle Mic Switch UP is button #3. CHECK 2. Assign the WH Throttle as the Preferred Device. CHECK 3. Copy & Pasted your script below the default script text. CHECK 4. Save, then Compile, set "Green H.exe" to run as admin. CHECK 5. Run Green H.exe., make sure it's turned ON. CHECK 6. Set VAC A-10C profile PTA setting = Scroll, save. CHECK 6. load VAC profile and turn ON. Check 7.load A-10C.... Scroll Lock works when throttle radio button pushed up (my keyboard puts up a graphic on screen when Scroll Lock state is changed). CHECK.... :D 8. Push radio button Up (more than once), No response from VAC with voice commands (voice commands work outside of sim in test mode) NOT SO MUCH, UN-CHECK! :cry: Question, VAC sends key presses into the sim, does it read key presses from the throttle radio button & AutoHotKey? [ :joystick: . VAC said,"What did you say Mr Joystick??"] So, what small (or big thing) thing am I missing here? :helpsmilie: [sIGPIC][/sIGPIC] Win7 Pro 64 | Asus Rampage III Extreme |Swiftech H2O cooled: CPU, Video, N. Bridge | i7 980X EE @4.5GHz | 16 GB DDR3 @1726 MHZ | AMD R9 290X 4GB DDR5 +EK H2O block+Backplate | BenQ XL2730Z 2560x1440 @144Hz | Samsung 850 EVO SSD 500GB | 2 - Samsung HD 1TB | Pinoeer BD-RW | ASUS Xonar DX 7.1 PCIe Audio | CoolerMaster Haf-X case | PC Power & Cooling Silencer 760W PS | HOTAS Cougar w/Evenstrain Mod | HOTAS Warthog | TM RCS Rudders + Mods | TM MFD's w/monitors | TrackIR5
Succellus Posted March 14, 2011 Posted March 14, 2011 How VAC perform on speech recognition compared to GC3 ? 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.
hassata Posted March 14, 2011 Author Posted March 14, 2011 (edited) Question, VAC sends key presses into the sim, does it read key presses from the throttle radio button & AutoHotKey? Hotkey picks up the DX button press and translates it into the key you specify in the script. VAC picks that up and does what it does. Try assigning A as the PTT ARM key in VAC, then use this script: 1Joy3:: Send, {a down} ; Sends a press to the application SetTimer, WaitForButtonUp1, 10 return WaitForButtonUp1: if GetKeyState("1Joy3") ; The button is still, down, so keep waiting. return ; Otherwise, the button has been released. Send, {a up} ; Sends a release to the application SetTimer, WaitForButtonUp1, off return Clear A from the LAAP button in DCS options. That worked for me, as Warrior's script for some reason sends Cap Lock along with Scrolllock. I was surprised at Voice Recognition of VAC-works really well. But is that Windows Vista? Edited March 14, 2011 by hassata [sIGPIC][/sIGPIC]
CubPilot Posted March 14, 2011 Posted March 14, 2011 VAC - Thumbs Up! How VAC perform on speech recognition compared to GC3 ? I had GC2 way back in Win98-XP days. It worked quite well. VAC is very good, as good as or better than GC2 or GC3 IMHO (GC3 was just like GC2 with mouse commands added). The author does ask $18 for it (worth every penny IMHO). The demo version is the full version with a time limit on it (30 days if I remember correctly). This is one of the few VC software out there that will work with 64bit OS's and it is currently being updated regularly ( I found that all of them I tried will program in 64bit, but not all will actually work with 64bit sims like A-10C). Most of the other choices out there appear to be dead as far as updates are concerned. VAC uses Win7 voice recognition software. A short training session with the Win7 VR software and it will help accuracy quite a bit. I highly recommend it! :thumbup: [sIGPIC][/sIGPIC] Win7 Pro 64 | Asus Rampage III Extreme |Swiftech H2O cooled: CPU, Video, N. Bridge | i7 980X EE @4.5GHz | 16 GB DDR3 @1726 MHZ | AMD R9 290X 4GB DDR5 +EK H2O block+Backplate | BenQ XL2730Z 2560x1440 @144Hz | Samsung 850 EVO SSD 500GB | 2 - Samsung HD 1TB | Pinoeer BD-RW | ASUS Xonar DX 7.1 PCIe Audio | CoolerMaster Haf-X case | PC Power & Cooling Silencer 760W PS | HOTAS Cougar w/Evenstrain Mod | HOTAS Warthog | TM RCS Rudders + Mods | TM MFD's w/monitors | TrackIR5
Succellus Posted March 15, 2011 Posted March 15, 2011 Thank you Cub. Are you the Cub from the COugar All sensors ? 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.
CubPilot Posted March 16, 2011 Posted March 16, 2011 (edited) Hotkey picks up the DX button press and translates it into the key you specify in the script. VAC picks that up and does what it does. Try assigning A as the PTT ARM key in VAC, then use this script: 1Joy3:: Send, {a down} ; Sends a press to the application SetTimer, WaitForButtonUp1, 10 return WaitForButtonUp1: if GetKeyState("1Joy3") ; The button is still, down, so keep waiting. return ; Otherwise, the button has been released. Send, {a up} ; Sends a release to the application SetTimer, WaitForButtonUp1, off return Clear A from the LAAP button in DCS options. That worked for me, as Warrior's script for some reason sends Cap Lock along with Scrolllock. I was surprised at Voice Recognition of VAC-works really well. But is that Windows Vista? Hassata, thanks for your help! :thumbup: I set mine up using F14 to activate VAC, that way I didn't need to change any conflicting default assignments. I also used the Default mode in the VAC Profile Activation Keys setting instead of the Arm mode. I like to keep the button pushed down as I access and use the COMMS Menu (like a MIC button would work). I'm using the easy COMMS option that displays the COMMS choices on screen and the Default mode works better for me. Only thing, I wish that I could code AutoHotKey to first send a "\" key to the sim to open the COMMS Menu, then send the "F12" key to turn VAC on using the same Radio UP button. If this could be done with one joy key press doing both actions ..... Priceless! If it could be done with two key presses, well that would be OK too. I tried "messing" with the code to do this but came up short as far as it working in the sim (found some code that would store multiple key assignments in a table, first key press outputs first key assignment, second key press outputs second key press, etc., NO JOY). Presently I say "COMMS Menu" to open the COMMS Menu. I'm not a programmer! Edited March 16, 2011 by CubPilot [sIGPIC][/sIGPIC] Win7 Pro 64 | Asus Rampage III Extreme |Swiftech H2O cooled: CPU, Video, N. Bridge | i7 980X EE @4.5GHz | 16 GB DDR3 @1726 MHZ | AMD R9 290X 4GB DDR5 +EK H2O block+Backplate | BenQ XL2730Z 2560x1440 @144Hz | Samsung 850 EVO SSD 500GB | 2 - Samsung HD 1TB | Pinoeer BD-RW | ASUS Xonar DX 7.1 PCIe Audio | CoolerMaster Haf-X case | PC Power & Cooling Silencer 760W PS | HOTAS Cougar w/Evenstrain Mod | HOTAS Warthog | TM RCS Rudders + Mods | TM MFD's w/monitors | TrackIR5
CubPilot Posted March 16, 2011 Posted March 16, 2011 (edited) Thank you Cub. Are you the Cub from the COugar All sensors ? Guilty as charged.................... but I don't know what "All sensors" are. ;) Good to hear you are still kicking. By the way...... how are those Hall Sensors holding up? Edited March 16, 2011 by CubPilot 2 [sIGPIC][/sIGPIC] Win7 Pro 64 | Asus Rampage III Extreme |Swiftech H2O cooled: CPU, Video, N. Bridge | i7 980X EE @4.5GHz | 16 GB DDR3 @1726 MHZ | AMD R9 290X 4GB DDR5 +EK H2O block+Backplate | BenQ XL2730Z 2560x1440 @144Hz | Samsung 850 EVO SSD 500GB | 2 - Samsung HD 1TB | Pinoeer BD-RW | ASUS Xonar DX 7.1 PCIe Audio | CoolerMaster Haf-X case | PC Power & Cooling Silencer 760W PS | HOTAS Cougar w/Evenstrain Mod | HOTAS Warthog | TM RCS Rudders + Mods | TM MFD's w/monitors | TrackIR5
hassata Posted March 16, 2011 Author Posted March 16, 2011 My Pedal mods are doing great after 5 years+! I think dual key outputs can be accomplished in the AHK script. Post here, these guys are great: http://www.autohotkey.com/forum/forum-1.html&sid=d4b77e9ef24bd3a435b0f80b91ffb2a3 P.S. Complex comms add a great deal to immersion for me, and would also take care of the situation. [sIGPIC][/sIGPIC]
Succellus Posted March 16, 2011 Posted March 16, 2011 (edited) Guilty as charged.................... but I don't know what "All sensors" are. ;) Good to hear you are still kicking. By the way...... how are those Hall Sensors holding up? LOL !!!! My bad. Well its Hall Sensors All around after all ! :D Not a glitch, absolutely perfect !!! I "Leased" the cougar to a friend, and all the sensors from the Stick, throttle and "the so much trouble it gave you first" RCS mod are perfect, no better rudders in the market. A pitty they aren t USB. The only thing is a big play due to overuse in the middle :) of the stick, but nothing related to the hall sensors. Now i got WT and Saitek pedals, the Saitek stuff isn t as good by far but i like them. Thank you for the great work! God to see you kicking too, +1 rep in name of the comunity for honorable and priceless serviçe in duty :D Edited March 16, 2011 by Succellus 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.
CubPilot Posted March 17, 2011 Posted March 17, 2011 (edited) Succellus, good to hear that those sensors are still ticking. Hassata, I thought I had seen your online name in my database. I use the easy menu option because I can't dive into this that much time wise (have other things to do that takes me away from this [wonder that that is :doh:]). So I thought, easy menu.... options listed on screen vs. memorizing command phrases and/or writing it down somewhere ...................... on screen won out and it isn't on screen all the time. I figure I have enough to remember with all the other procedures needed to deploy weapons, etc. (Gun & Mavericks I'm good with, Bombs..... haven't got a clue yet.). At least I'm not using game mode! :lol: The AutoHotKey script I found was promising in that it would output any number of different key assignments (that it stored in a table) with the same button, press radio button up, first key assignment sent, press second time, second key assignment sent, etc. It looked good in Notepad, but in the sim it would not work. I might try it again later. P.S. => Don't toss the RCS's yet. I might come up with a USB adapter for them and toe brakes are not dead either. Good to bump into you guys! Edited March 17, 2011 by CubPilot [sIGPIC][/sIGPIC] Win7 Pro 64 | Asus Rampage III Extreme |Swiftech H2O cooled: CPU, Video, N. Bridge | i7 980X EE @4.5GHz | 16 GB DDR3 @1726 MHZ | AMD R9 290X 4GB DDR5 +EK H2O block+Backplate | BenQ XL2730Z 2560x1440 @144Hz | Samsung 850 EVO SSD 500GB | 2 - Samsung HD 1TB | Pinoeer BD-RW | ASUS Xonar DX 7.1 PCIe Audio | CoolerMaster Haf-X case | PC Power & Cooling Silencer 760W PS | HOTAS Cougar w/Evenstrain Mod | HOTAS Warthog | TM RCS Rudders + Mods | TM MFD's w/monitors | TrackIR5
=Panther= Posted March 17, 2011 Posted March 17, 2011 P.S. => Don't toss the RCS's yet. I might come up with a USB adapter for them and toe brakes are not dead either. Good to bump into you guys! Could use one of those for the Simpeds too. Twitch Channel [sIGPIC][/sIGPIC] Virtual Thunderbirds, LLC | Sponsored by Thrustmaster Z390 Aorus Xtreme, i9 9900k, G.SKILL TridentZ Series 32GB, 1080ti 11GB, Obutto R3Volution, Thrustmaster HOTAS Warthog, TPR, Cougar MFDs, FSSB R3L, JetSeat, Oculus Rift S, Buddy-Fox A-10C UFC, F/A-18C UFC, Tek Creations F-16 ICP
CubPilot Posted March 17, 2011 Posted March 17, 2011 (edited) Could use one of those for the Simpeds too. Maybe, I don't have Simpeds myself. Tried getting them once but it didn't work out. That's when I modified my RCS's, I'm happy with them. My thought was to make an adapter that would allow converting the Cougar DB15 connector and its rudder w/toe brake wiring scheme to be able to attach Leo Bodnar's USB cable adapter. That way the rudders could be used with a Cougar or standalone with USB by simply using, or not using the adapter. The prototype adapter allows connecting to USB when added between the RCS DB15 cable that connects to the Cougar and Leo's G25 USB adapter cable. Edited March 17, 2011 by CubPilot [sIGPIC][/sIGPIC] Win7 Pro 64 | Asus Rampage III Extreme |Swiftech H2O cooled: CPU, Video, N. Bridge | i7 980X EE @4.5GHz | 16 GB DDR3 @1726 MHZ | AMD R9 290X 4GB DDR5 +EK H2O block+Backplate | BenQ XL2730Z 2560x1440 @144Hz | Samsung 850 EVO SSD 500GB | 2 - Samsung HD 1TB | Pinoeer BD-RW | ASUS Xonar DX 7.1 PCIe Audio | CoolerMaster Haf-X case | PC Power & Cooling Silencer 760W PS | HOTAS Cougar w/Evenstrain Mod | HOTAS Warthog | TM RCS Rudders + Mods | TM MFD's w/monitors | TrackIR5
Succellus Posted March 17, 2011 Posted March 17, 2011 P.S. => Don't toss the RCS's yet. I might come up with a USB adapter for them and toe brakes are not dead either. Good to bump into you guys! Do not worry, the leasing has the primary condition: "To be sent back to me when the leased doesn t want them anymore" So if you come with a USB solution count me in! 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.
Leysard Posted November 23, 2012 Posted November 23, 2012 I have installed VAC (with a profile) and AutoHotkey with the script (button3 on throttle => F14). All works out of DCS World 1.2.2, for example, if i say number five beeing in Internet explorer, the page will refresh. But when I go in to a mission in DCS, it does not work. I don't understand what's wrong, can someone help me ? Win 10 | i7 8700 Coffee Lake OC @ 4.9Ghz | 32Go Ram | 1080Ti | DCS on SSD | Thrustmaster HOTAS Warthog | Saitek Rudder | TrackIr 5 Pro
Recommended Posts