Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've seen a lot of info (here & elsewhere) about things you can get AutoHotKey to do with text once the user has selected it, but is there a way to have an AHK script select the text itself? I'm doing a script to enter text into web form fields, and I need the script to select any text that's already in the field & delete it. I've looked at ControlGet but that seems to only work in dialog boxes etc where you can get the name of the control, not web fields. Any ideas?

share|improve this question

Why not just send Ctrl+A, Del?

That is, Send ^a, {Del}, in AutoHotkey.

share|improve this answer
"!a" is Shift+a. Ctrl+a is "^a". – Snark Jan 28 '10 at 21:38
@Snark - Oops, thanks. Edited. – Blorgbeard Jan 29 '10 at 1:00
Why not just send Ctrl+A, Del? Because the question was about Windows XP and XP edit controls did not support Ctrl+A. – Synetech Nov 28 '15 at 21:02

You must log in to answer this question.