Windows – How to make AutoHotKey delete text in a web field

autohotkeyscriptwindows xp

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 writing 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 where you can get the name of the control, which means it doesn't work for web fields. Any ideas?

Best Answer

Why not just send Ctrl+A, Del?

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

Related Question