Hi Jonathan, When you say WE is losing the cursor position; do you mean that you can tell this by interacting with WE via the keyboard, or are you made aware of this because you have an app which is using the cursor position object?
I did report a problem to GW years ago about the cursor object often failing to yield coordinates which could then be used to extract text from the text object. I'm afraid they seemed to think it was of low priority, as I don't think it's ever been addressed. In my case the cursor object would *sometimes* return coordinates which would be approx 3 pixels off from a value which would cause the text object to return the text of the line in question. It was pretty ugly, but I had to take the value of the cursor y position, and add up to 10 pixels to it in a loop, testing each time to see if the text object would return a line of text. Doing this I could always get the desired line of text (this was for a Microsoft Word window, so nothing unusual, and it was a document with text specified on every line, and regularly spaced). But as I arrowed down in my document, WE could sometimes return coordinates in the cursor object which could not be used to get the line of text from the text object. This is by the way, the only way I can think of to see if you have a completely blank line; crawl down the window by using pixels to specify your position, and see if the text object returns text for the line specified that way. I don't know how you would determine the correct value to use for each line's height, but if you could find a way to do that, you could then assume when you got nothing back from the text object, that the line was blank. Hth, Chip Chip Orange Florida Public Service Commission Computer Systems Analyst 850-413-6314 -----Original Message----- From: Scripting [mailto:scripting-bounces+corange=psc.state.fl...@lists.window-eyes.com] On Behalf Of Jonathan C. Cohn via Scripting Sent: Tuesday, September 01, 2015 1:15 PM To: Window-Eyes Scripting List Subject: losing the cursor in Reflection Vt100 terminal emulation. Hello, After some events (new Outlook mail, Lynq notifications of status cahnges) WindowEyes is losing the location of the blinking underline cursor that Reflection presents. When this happens only doing a shutdown and then start of Reflection allows me to get the ScreenPoint of the cursor and thereby the clip / line of text availble around it. I thought I had a workaround by querying the reflection for CursorRow and then walking down the text object with NextLineStatic this however ignores lines that are entirely blank. Is the issue of WWindowEyes losing the cursor location something anybody else has seen? Also, anyway to grab line X of a screen where lines that are blank are counted as part of the calculation. Thanks, Jonathan Cohn _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/corange%40psc.state.fl.us. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com _______________________________________________ Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Ai Squared. For membership options, visit http://lists.window-eyes.com/options.cgi/scripting-window-eyes.com/archive%40mail-archive.com. For subscription options, visit http://lists.window-eyes.com/listinfo.cgi/scripting-window-eyes.com List archives can be found at http://lists.window-eyes.com/private.cgi/scripting-window-eyes.com