Jump to content

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

Link to comment
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)
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...