• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 sun0781, Today, 05:02 PM
        0 responses
        6 views
        0 likes
        Last Post sun0781
        by sun0781
         
        Started by ronhb107, 09-12-2019, 10:09 AM
        4 responses
        41 views
        0 likes
        Last Post Mr.Trader  
        Started by rwilliam, Today, 03:55 PM
        0 responses
        3 views
        0 likes
        Last Post rwilliam  
        Started by asmmbillah, Today, 03:42 PM
        2 responses
        7 views
        0 likes
        Last Post asmmbillah  
        Started by NT-Roland, Today, 03:25 PM
        0 responses
        7 views
        0 likes
        Last Post NT-Roland  
        Working...
        X