Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Function key F5
Collapse
X
-
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
-
Originally posted by rcsingleton View PostHello,
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?
ThanksCode:System.Windows.Forms.SendKeys.Send("{F5}");
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
-
Originally posted by koganam View PostCode:System.Windows.Forms.SendKeys.Send("{F5}");
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().
The refresh key is something I could use. I will give it a try.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by f.saeidi, Today, 08:01 PM
|
0 responses
2 views
0 likes
|
Last Post
by f.saeidi
Today, 08:01 PM
|
||
Change colour of Stop market and limit orders to red and green via indicator script
by Rapine Heihei
Started by Rapine Heihei, Today, 07:51 PM
|
0 responses
3 views
0 likes
|
Last Post Today, 07:51 PM | ||
Started by frslvr, 04-11-2024, 07:26 AM
|
5 responses
96 views
1 like
|
Last Post
by caryc123
Today, 07:47 PM
|
||
Started by algospoke, 04-17-2024, 06:40 PM
|
6 responses
49 views
0 likes
|
Last Post
by algospoke
Today, 06:18 PM
|
||
Started by arvidvanstaey, Today, 02:19 PM
|
4 responses
11 views
0 likes
|
Last Post Today, 04:08 PM |
Comment