Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Function key F5

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

    Function key F5

    what does F5 do?

    #2
    Hello gartonrd,

    Thank you for your post.

    The F5 key is used to refresh a window.

    Please let me know if I may be of further assistance.
    Christopher J.NinjaTrader Customer Service

    Comment


      #3
      where is the F5 key discussed in the help?

      Comment


        #4
        Unfortunately I am not aware of this key being included in a portion of the Help Guide at this time.
        Christopher J.NinjaTrader Customer Service

        Comment


          #5
          Automating the Refresh Key F5

          Hello,

          I want automate the refresh key, F5, in an indicator.

          What would be the code to activate the function key, F5 in the OnUpdate() section?

          Thanks

          Comment


            #6
            Unfortunately calling this programmatically is not supported in NinjaScript.

            Comment


              #7
              Originally posted by rcsingleton View Post
              Hello,

              I want automate the refresh key, F5, in an indicator.

              What would be the code to activate the function key, F5 in the OnUpdate() section?

              Thanks
              Code:
              System.Windows.Forms.SendKeys.Send("{F5}");
              As NinjaTrader_Bertrand says, you cannot expect any support/help to make it work. It is standard C#, but there is plenty of standard C# that is not supported NinjaScript.

              You have to be very careful to make sure that you have suitable escape conditions, or you will find yourself in an endless loop if you use it in OnBarUpdate().
              Last edited by koganam; 02-17-2011, 04:02 AM.

              Comment


                #8
                Originally posted by koganam View Post
                Code:
                System.Windows.Forms.SendKeys.Send("{F5}");
                As NinjaTrader_Bertrand says, you cannot expect any support/help to make it work. It is standard C#, but there is plenty of standard C# that is not supported NinjaScript.

                You have to be very careful to make sure that you have suitable escape conditions, or you will find yourself in an endless loop if you use it in OnBarUpdate().
                Thank you for your response.

                The refresh key is something I could use. I will give it a try.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                88 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                48 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                31 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                34 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                69 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X