Sign in to follow this  
Followers 0
galpha

How To Select All

2 posts in this topic

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")
EndFunc

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