Support Board
Date/Time: Wed, 15 Jan 2025 18:47:01 +0000
Post From: Winhook WH_MSGFILTER is not working anymore for the chart window
[2017-07-19 23:41:34] |
Sierra Chart Engineering - Posts: 104368 |
We have completed the development of the new API. Below is an example function for it. This will be supported in the next release. SCSFExport scsf_ReceiveKeyboardEventsExample(SCStudyInterfaceRef sc)
{ SCString MessageText; // Set configuration variables if (sc.SetDefaults) { sc.GraphName = "Receive Keyboard Events Example"; sc.StudyDescription = ""; sc.GraphRegion = 0; sc.FreeDLL = 0; // We have expressly set Autolooping to off because we are not filling // in any of the Subgraph[].Data[] arrays. Since Autolooping will // cause this function to be called for every bar in the chart it // would be inefficient to use Autolooping. sc.AutoLoop = 0; sc.ReceiveKeyboardKeyEvents = 1; sc.ReceiveCharacterEvents = 1; return; } // wait for an event if (sc.KeyboardKeyEventCode != 0) { MessageText.AppendFormat("Received keyboard key event. Windows virtual key code: %i, ", sc.KeyboardKeyEventCode); sc.AddMessageToLog(MessageText, 0); } if(sc.CharacterEventCode != 0) { MessageText.AppendFormat("Received character event. ASCII code: %i, ", sc.CharacterEventCode); sc.AddMessageToLog(MessageText, 0); } } 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-07-19 23:42:03
|