Jump to content
Sign in to follow this  
GioVit

Get Set Caret Pos

Recommended Posts

GioVit

The ControlCommand function can return the current caret position in an input control (the value retunned is in chars or column position in the string value).

So the question is, is there a way to let me set the caret position in an input control giving the char or column position of the string as parameter

Thanks in advance

Share this post


Link to post
Share on other sites
GaryFrost

look at _GUICtrlEdit_SetSel in the beta, just set the start and end position to the same to set the caret to that pos


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
GioVit

Wow!!! Again, that was a really fast answer Gary

many thanks

I was trying to find the answer in google and thought it was impossible.

it is incredible the things you can learn in this forum

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×