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 PaulMohn, Today, 05:00 AM
|
0 responses
6 views
0 likes
|
Last Post
by PaulMohn
Today, 05:00 AM
|
||
Started by ZenCortexAuCost, Today, 04:24 AM
|
0 responses
6 views
0 likes
|
Last Post Today, 04:24 AM | ||
Started by ZenCortexAuCost, Today, 04:22 AM
|
0 responses
3 views
0 likes
|
Last Post Today, 04:22 AM | ||
Started by SantoshXX, Today, 03:09 AM
|
0 responses
16 views
0 likes
|
Last Post
by SantoshXX
Today, 03:09 AM
|
||
Started by DanielTynera, Today, 01:14 AM
|
0 responses
5 views
0 likes
|
Last Post
by DanielTynera
Today, 01:14 AM
|
Comment