Sign in to follow this  
Followers 0
SlimShady

A scrap not a script

5 posts in this topic

I started using AutoIt Guis. It works nice at the moment.

One thing is missing: CTRL+A for selecting everything in a an editbox.

So I created a simple function that does this.

Put this anywhere in your script.

HotKeySet("^a", "SelectAll"); CTRL+A
Func SelectAll()
Send("^{HOME}")
Send("^+{END}")
EndFunc

Share this post


Link to post
Share on other sites



If an edit/input control has focus, you can also select text this way:

$EM_SETSEL = 0xB1;
GuiSendMsg($inputGuiRefNumber, $EM_SETSEL, 0, 99999)

0 to 99999 is the range of characters to select.


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

I think that LPARAM of -1 selects all text...

Share this post


Link to post
Share on other sites

That works too.

Thank you.

Share this post


Link to post
Share on other sites

How about: Send("{^ a}")

Worked for me.

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  
Followers 0