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!
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
NinjaTrader
Monitor for Up/Down Arrow Key
Collapse
X
-
Monitor for Up/Down Arrow Key
I would like to be able to monitor for the up/down arrow key being pressed (or any key for that matter). I tried to hook the chart window PreviewKeyDown handler, but that did not seem to do the trick. Do I need to hook a different component/handler? Thanks.Tags: None
-
Hello aslane,
The example is only designed to show how to interpret ascii keys.
You would only need the key command for the sequence you are after.
This example does not show how to interpret every combination on the key board. It only provides a general outline of how key presses would be intercepted and interpreted.Chelsea B.NinjaTrader Customer Service
Comment
-
Yes, I understand the general concept, was only pointing out that this example is useless because the arrow keys are kind of special because they are navigation keys (not just ascii). I understand that I need to look for the arrow keycode, but the real issue is how to properly tap into the event hierarchy. The up/down arrow keys get routed off to the chart scale. So to properly monitor for them you need to tap fairly early in the hierarchy. I suspected you would not support it (and that is totally ok), but was hoping for a hint, as I have tapped into this event everywhere that I could find with no luck.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by algospoke, 04-17-2024, 06:40 PM
|
5 responses
46 views
0 likes
|
Last Post Today, 02:36 PM | ||
Started by arvidvanstaey, Today, 02:19 PM
|
1 response
4 views
0 likes
|
Last Post Today, 02:33 PM | ||
Started by mmckinnm, Today, 01:34 PM
|
3 responses
5 views
0 likes
|
Last Post Today, 02:12 PM | ||
Started by f.saeidi, Today, 01:32 PM
|
2 responses
8 views
0 likes
|
Last Post
by f.saeidi
Today, 02:10 PM
|
||
Started by alifarahani, 04-19-2024, 09:40 AM
|
9 responses
55 views
0 likes
|
Last Post Today, 02:02 PM |
Comment