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 Gkomi, Today, 10:02 AM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_Jim  
        Started by JTizz, Today, 08:58 AM
        6 responses
        29 views
        0 likes
        Last Post NinjaTrader_PaulH  
        Started by Bob49, Today, 08:40 AM
        0 responses
        19 views
        0 likes
        Last Post Bob49
        by Bob49
         
        Started by Malik_demoacct, Today, 08:31 AM
        0 responses
        17 views
        0 likes
        Last Post Malik_demoacct  
        Started by nkhoi, Today, 08:40 AM
        0 responses
        26 views
        0 likes
        Last Post nkhoi
        by nkhoi
         
        Working...
        X