SGT Coyle Posted December 4, 2017 Posted December 4, 2017 (edited) TARGET won't send Win key combos. Simple test script. [color=#1e90ff][b]include[/b][/color] [color=#a52a2a]"target.tmh"[/color] [color=#32cd32]//program startup[/color] [color=#1e90ff][b]int[/b][/color] main() { [color=#1e90ff][b]if[/b][/color][color=#ffffff]([/color]Init(&EventHandle)) [color=#1e90ff][b]return[/b][/color] [color=#ffffff]1[/color]; [color=#32cd32]// declare the event handler, return on error[/color] [color=#32cd32]//add initialization code here[/color] MapKey(&Joystick[color=#ffffff],[/color]H4U[color=#ffffff],[/color]L_WIN+[color=#a52a2a]'e'[/color]); MapKey(&Joystick[color=#ffffff],[/color]H4D[color=#ffffff],[/color]PULSE[color=#ffffff]+[/color]L_WIN+[color=#a52a2a]'e'[/color]); } [color=#32cd32]//event handler[/color] [color=#1e90ff][b]int[/b][/color] EventHandle[color=#ffffff]([/color][color=#1e90ff][b]int[/b][/color] type, [color=#1e90ff][b]alias[/b][/color] o, [color=#1e90ff][b]int[/b][/color] x) { DefaultMapping(&o, x); [color=#32cd32]//add event handling code here[/color] }Just get L_WIN key press. Tried fooling around with KB rate but no joy. Any thoughts? Edited December 7, 2017 by SGT Coyle [Solved] Night Ops in the Harrier IYAOYAS
Home Fries Posted December 6, 2017 Posted December 6, 2017 While DCS uses LWin as a modifier, TARGET doesn’t see it as one. Therefore, to use LWin as a modifier you must use a CHAIN command, e.g. CHAIN(‘b’,’a’). I’m mobile so I don’t know the hex code for the left GUI key, but you need to chain the left GUI with’e’ for the combination to work. -Home Fries My DCS Files and Skins My DCS TARGET Profile for Cougar or Warthog and MFDs F-14B LANTIRN Guide
SGT Coyle Posted December 7, 2017 Author Posted December 7, 2017 Thanks, I knew it had to be simple. I've been banging my head looking for info. Night Ops in the Harrier IYAOYAS
Davee Posted December 7, 2017 Posted December 7, 2017 Thanks, I knew it had to be simple. I've been banging my head looking for info. Easier still use USB code in Target L_WIN = USB[232] R_WIN = USB[227] note the square brackets. Just insert USB[232] where you need it. Cheers
Recommended Posts