Login Page - Create Account

Support Board


Date/Time: Wed, 19 Mar 2025 01:18:01 +0000



[Programming Help] - Get exact pointer click coordinates using ACSIL

View Count: 623

[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
}

}



[2022-10-06 19:34:56]
User431178 - Posts: 617
ACSIL Interface Members - Variables and Arrays: sc.PointerHorzWindowCoord
ACSIL Interface Members - Variables and Arrays: sc.PointerVertWindowCoord

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

Login

Login Page - Create Account