Login Page - Create Account

Support Board


Date/Time: Thu, 06 Feb 2025 04:04:05 +0000



sc.IsKeyPressed_Alt broken in version 2083

View Count: 779

[2020-04-14 13:52:13]
ForgivingComputers.com - Posts: 994
FYI...

sc.IsKeyPressed_Alt
sc.IsKeyPressed_Shift
sc.IsKeyPressed_Control

Are not working in version 2083. They were fine in 2060, then appear to be intermittent in version 2077. Still somewhat intermittent in pre-release 2084, but the combination of all 3 works consistently.

Tested with scsf_ReceiveKeyboardEventsExample in Studies.cpp.
Date Time Of Last Edit: 2020-04-14 14:31:06
[2020-04-14 18:05:56]
User669282 - Posts: 5
I join the starting post - IsKeyPressed do not work.

Unfortunately.
[2020-04-14 18:27:26]
Sierra Chart Engineering - Posts: 104368
We do not see how there could be an intermittent issue. If there is an intermittent issue like this, that must be because you are not holding the key down long enough.

There might be an issue where the event is not getting passed through to the custom study at all, in the current version, but this is resolved in the latest prerelease if it was a problem.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2020-04-14 18:27:53
[2020-04-14 18:46:48]
User669282 - Posts: 5
I use a key Ctrl+Shift combination in my research. I hold it long enough. There is no result.
I put your research "Receive Keyboard Events Example"- this is how it works:


Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 17, | 2020-04-14 13:39:57.392
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:39:58.592
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 17, | 2020-04-14 13:40:00.248
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:00.384
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 17, | 2020-04-14 13:40:36.297
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 17, | 2020-04-14 13:40:36.812
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 17, | 2020-04-14 13:40:36.830
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 17, | 2020-04-14 13:40:36.872
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 17, | 2020-04-14 13:40:36.896
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 17, | 2020-04-14 13:40:36.929
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:38.322
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:38.781
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:38.814
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:38.849
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:38.880
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:38.913
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:38.948
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:38.979
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:39.012
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:39.056
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:39.078
Chart: GCM20[M] 20 Sec #1 | Study: Receive Keyboard Events Example | Received keyboard key event. Windows virtual key code: 16, | 2020-04-14 13:40:39.111



Not Add Message To Log"Shift key pressed" and "Control key pressed"!
[2020-04-15 14:45:21]
User669282 - Posts: 5
Prerelease 2086 problem is over.
thank you

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account