Jump to content
Sign in to follow this  

Get/Set Text of external app active control?

Recommended Posts

Anyone know of a UDF or other method that would be equivalent of

$text = GetActiveControlText()

$success = SetActiveControlText("some text")


I'm wondering why it's required to get controlID. Seems like there should be an equivalent to

$text = WinGetText("[ACTIVE]")

What I'm trying to do is copy text out of a browser edit(like you would use on a forum) then pasted it back after editing using an external editor. I don't want to have to know all the class names of all the edit controls of all the browsers. It's already been done. I'm just trying to figure out if I can implement it myself. I already have a copy out to temp file using clipboard, but pasting the temp file back seems mysterious.

Edited by MilesAhead

Share this post

Link to post
Share on other sites


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...