Login Page - Create Account

Support Board


Date/Time: Sat, 18 Jan 2025 19:40:21 +0000



Run ACSIL code on window focus

View Count: 797

[2018-02-28 19:31:36]
aknsyu71@gmail - Posts: 54
Run the code one time but every time the window receives focus.

Ive tried sc.ChartWindowIsActive but it runs the code many times.

Many thanks
[2018-02-28 22:01:09]
Sierra Chart Engineering - Posts: 104368
The only way to do this is to use this member:
ACSIL Interface Members - Variables and Arrays: sc.UpdateAlways

And then you can check sc.ChartWindowIsActive to see if the chart is active.
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