Jump to content
Sign in to follow this  

How To Select All

Recommended Posts


Me again :huh2:

Now I got an edit box created, I want it so that when u hit CTRL-A , it select all the things you typed in.

So far I got:

Func EnableHotKeys()
HotKeySet("^a", "SelectAll")

SelectAll would be the function name to call but what I put in this function, I got no idea what to write in it. help plz :D .

Share this post

Link to post
Share on other sites

EM_SETSEL comes to mind. Sending that message with 0 as WPARAM and -1 as LPARAM highlights the entire string. Something like:

Global $EM_SETSEL = 0x00B1
GuiSendMsg($yourControl, $EM_SETSEL, 0, -1)

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.