CyberSlug Posted March 2, 2004 Share Posted March 2, 2004 Larry (or whomever), is is possible to add a ControlCommand that gives the current Column of the caret within an Edit control? [i have a workaround where I select the text preceding the cursor and count the characters, but it's prefer to do it discretely.] Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Valik Posted March 2, 2004 Share Posted March 2, 2004 My method of getting the caret position just uses an API function along with AttachThreadInput to get it from whichever program is on top (I tried allowing the user to specify a window, but this was a way bad idea and returned... odd results). That being said, the column is probably something that's calculated internally. I don't see any glaring "Hey I return the column of the caret" functions when I took a look at the API. It might be possible to write a function that could calculate it, but I think the time and effort would be wasted since it would only work on Microsoft controls. I think you're finding out the hard way that a lot of editors don't always respond correctly to those... Link to comment Share on other sites More sharing options...
CyberSlug Posted March 2, 2004 Author Share Posted March 2, 2004 I forgot to mention that reading the statusbar is a decent workaround. Anyway, thanks for trying, Valik Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Valik Posted March 2, 2004 Share Posted March 2, 2004 I forgot to mention that reading the statusbar is a decent workaround.Anyway, thanks for trying, ValikI thought of that until I used Au3_Spy on TextPad. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now