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 Jon17, Today, 04:33 PM
        0 responses
        1 view
        0 likes
        Last Post Jon17
        by Jon17
         
        Started by Javierw.ok, Today, 04:12 PM
        0 responses
        4 views
        0 likes
        Last Post Javierw.ok  
        Started by timmbbo, Today, 08:59 AM
        2 responses
        10 views
        0 likes
        Last Post bltdavid  
        Started by alifarahani, Today, 09:40 AM
        6 responses
        40 views
        0 likes
        Last Post alifarahani  
        Started by Waxavi, Today, 02:10 AM
        1 response
        19 views
        0 likes
        Last Post NinjaTrader_LuisH  
        Working...
        X