I want to get X and Y coordinate in a graph window by using the screen reader tool with getpts -a 1 command. The X-position is easily accessed via the _xpos-variable. However, I am not able to get the Y-position. This only works with the getpts 1 command by using the _indx-variable. But in this case I am limited to points on the (line) graph itself and not on the entire layer. How is this done in Labtalk ?
If you issue the Labtalk command "dotoolbox 2", and double click in the graph window, the x- and y-coordinates of that point in the active layer should be stored in the Origin variables x and y