How do I get the cursor position on a multiline text area? I'm automating our source editor at the moment which is in a java application, and GetPosition() is returning the strangest results on the windows platform...

if cursor position is at Line 10, Col 1
GetPosition -> 8, 6

if cursor position is at Line 11, Col 1
GetPosition -> 10, 1

But when the same application runs on a unix platform, Silktest sees a non multiline textarea, so GetPosition() works fine.

Any help appreciated.

- Silkworm