Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 01:53:16 +0000



ACSIL mouse click key modifier

View Count: 1508

[2017-09-15 12:46:43]
dtl-saw - Posts: 79
I'm using custom buttons on a control bar + mouse clicks to create drawings and configure chart behaviors. To keep the number of buttons used down I would like to use a key modifier for mouse clicks.
For example, i use a custom button to enter a drawing mode and then use a mouse click to define an index on the chart for constructing a drawing. If I could combine <CTRL> key + a mouse click then I could define another different behavior from just the mouse click and which saves from using another button.
Do you have that available in ACSIL to combine special function keys like: <ALT>, <CTRL>, <SHIFT> to combine with left mouse clicks?

Thanks
[2017-09-15 17:47:06]
Sierra Chart Engineering - Posts: 104368
We will see about adding flag variables to ACSIL to indicate these particular keyboard states.
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: 2017-09-15 17:47:16
[2017-11-25 19:38:57]
dtl-saw - Posts: 79
It's been awhile since I posted, did you implement this requested feature?
This capability will be a big benefit for everyone writing ACSIL functions.
Regards
[2017-11-25 23:45:54]
Sierra Chart Engineering - Posts: 104368
Yes this has been done for some time now:

  uint16_t sc.SupportKeyboardModifierStates;
  uint16_t sc.IsKeyPressed_Control;
  uint16_t sc.IsKeyPressed_Shift;
  uint16_t sc.IsKeyPressed_Alt;

We will have documentation available as soon as possible for these.
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
[2017-11-26 02:09:36]
dtl-saw - Posts: 79
Fantastic! Thanks for supporting this feature.
[2017-11-26 02:36:04]
Sierra Chart Engineering - Posts: 104368
You will need to set :

sc.SupportKeyboardModifierStates=1;
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

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

Login

Login Page - Create Account