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 Christopher_R, Today, 12:29 AM
        0 responses
        6 views
        0 likes
        Last Post Christopher_R  
        Started by sidlercom80, 10-28-2023, 08:49 AM
        166 responses
        2,235 views
        0 likes
        Last Post sidlercom80  
        Started by thread, Yesterday, 11:58 PM
        0 responses
        3 views
        0 likes
        Last Post thread
        by thread
         
        Started by jclose, Yesterday, 09:37 PM
        0 responses
        7 views
        0 likes
        Last Post jclose
        by jclose
         
        Started by WeyldFalcon, 08-07-2020, 06:13 AM
        10 responses
        1,415 views
        0 likes
        Last Post Traderontheroad  
        Working...
        X