Login Page - Create Account

Support Board


Date/Time: Wed, 19 Mar 2025 05:07:39 +0000



Post From: Get exact pointer click coordinates using ACSIL

[2022-10-06 18:40:59]
User852621 - Posts: 14
Hi, is it possible to get exact X mouse coordinates? Specifically I want to detect clicks inside the price column on the chart dom.

At the moment my code looks something like this:



if (sc.PointerEventType == SC_POINTER_BUTTON_DOWN) {

int left = sc.GetDOMColumnLeftCoordinate(n_ACSIL::DOM_COLUMN_PRICE);
int right = sc.GetDOMColumnRightCoordinate(n_ACSIL::DOM_COLUMN_PRICE);

int pointerXCoordinate = // ?? HOW DO I GET THIS VALUE


if(pointerXCoordinate > left && pointerXCoordinate < right) {

// clink inside price column
}

}