Jump to content
Sign in to follow this  
Champak

Setting cursor

Recommended Posts

Champak

Is there a way to set the cursor at the end of a block of text QUICKLY? Currently what I'm doing is getting the line count of the control, then sending the down key by that amount....which is the slow part....then sending the END key. Just looking for a much faster way because the sending the DOWN key can take very long depending on the amount of lines.

Share this post


Link to post
Share on other sites
herewasplato

If you mean the very end of all text in a control - try "^{END}"

Edit: 2 slow :-)

Send me to typiiiing class.

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
SmOke_N

Is there a way to set the cursor at the end of a block of text QUICKLY? Currently what I'm doing is getting the line count of the control, then sending the down key by that amount....which is the slow part....then sending the END key. Just looking for a much faster way because the sending the DOWN key can take very long depending on the amount of lines.

What type of control is it? If you know that, then you could use a SendMessage method.

Otherwise, you could look at: http://msdn.microsoft.com/en-us/library/ms648394(VS.85).aspx


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Champak

It's funny, the keyboard is the most basic thing on the computer and I learn at least one new thing abut it every six months or so. Thanks.

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  

×