Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

NT8 - accessing properties for HotKeys?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    NT8 - accessing properties for HotKeys?

    Hi there,

    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:

    PHP Code:

    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


    I'm sure I'm missing something in the foreach statement.

    Oh and if possible to set "RemoveAllDrawingObjects" to my own KeyGesture programmatically.

    Thank you.
    Last edited by Sim22; 05-25-2016, 10:52 PM.

    #2
    Hello Sim22,

    I am not aware of a way to loop through the existing event handlers for each keypress / keydown.

    However, I will create a feature request on your behalf for this and send this in to development. Once I have a tracking ID for this request I will post this ID in this thread.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      I'm already using hotkeys hardcoded in ninjascript using default values via string arrays, however since I will share this (indicator) with the forum I wanted to access the user defined settings. I have learned the hard way that not everyone reads instructions very well

      Thank you.
      Last edited by Sim22; 05-26-2016, 07:56 PM.

      Comment


        #4
        Hello Sim22,

        Your feature request to make hotkeys accessible and modifiable through code is being tracked with ID# SFT-1418.

        Please let us know of any other suggestions you may have for the NinjaTrader platform.
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by ketostrongdiet, Today, 12:34 AM
        0 responses
        6 views
        0 likes
        Last Post ketostrongdiet  
        Started by ketostrongdiet, Today, 12:33 AM
        0 responses
        7 views
        0 likes
        Last Post ketostrongdiet  
        Started by mattdowns1234, Yesterday, 06:57 PM
        0 responses
        16 views
        0 likes
        Last Post mattdowns1234  
        Started by dgee949, Yesterday, 06:26 PM
        0 responses
        26 views
        0 likes
        Last Post dgee949
        by dgee949
         
        Started by dgee949, Yesterday, 05:58 PM
        0 responses
        32 views
        0 likes
        Last Post dgee949
        by dgee949
         
        Working...
        X