Sign in to follow this  
Followers 0
MilesAhead

Get/Set Text of external app active control?

3 posts in this topic

#1 ·  Posted (edited)

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



ControlGetFocus()


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

Thanks. Copy out is easy. Maybe I'll just stick with that. Esp. since somebody else already did paste back in. :graduated:

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  
Followers 0