Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

Why not just send Ctrl+A, Del?

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

share|improve this answer
1  
"!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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.