I am wanting to loop through each drawing tool hotkey within ninja script to find the Key Gesture/Key/Modifiers for each hotkey.
I'm looking at something like this:
NinjaTrader.Gui.HotKeys.ChartHotKeys hotKeys = new NinjaTrader.Gui.HotKeys.ChartHotKeys();
foreach(KeyGesture keyGesture in hotKeys)
{
string displayString = keyGesture.DisplayString;
Key key = keyGesture.Key;
ModifierKeys mKeys = keyGesture.Modifiers;
......do something with this information
}
Oh and if possible to set "RemoveAllDrawingObjects" to my own KeyGesture programmatically.
Thank you.
Comment