Support Board
Date/Time: Wed, 15 Oct 2025 04:32:54 +0000
Post From: Autoscreenshot script
[2025-09-19 09:53:29] |
User431178 - Posts: 799 |
Checking the docs is probably a good starting point. You can ask chatGPT or claude to search the docs and highlight the source of your errors. ACSIL Interface Members - Functions: sc.SaveChartImageToFileExtended() ACSIL Interface Members - Functions: sc.OpenChartOrGetChartReference() ACSIL Interface Members - Variables and Arrays: sc.ScrollToDateTime SaveChartImageToFileExtended 1. Declared as void, so does return a value. 2. You cannot check success/failure as it does not run until after your function returns 3. It does not have an image format parameter. ScrollToDateTime 1. Is a member variable not a function and does not have a chartNumber parameter (should be sc.ScrollToDateTime = targetDateTime) OpenChartOrGetChartReference 1. IBPT_SECONDS_PER_BAR does not exist, use IBPT_DAYS_MINS_SECS instead Now one other problem that means the script will not work as you want, even if it compiles. If this function is called multiple times during a call into a study function, only the most recent call will be processed. The other calls to this function will be disregarded.
You can probably write your own capture function if SaveChartImageToFileExtended isn't doing what you want. Date Time Of Last Edit: 2025-09-19 09:57:04
|