Jump to content
Sign in to follow this  
Dave in PNG

How to read stubborn controls

Recommended Posts

Dave in PNG

I'm trying to automate a program that is being stubborn. Autoit3Info can see the controls, give me a classname, ID and even the text of the control, but GUICtrlRead() always returns a 0. It's kind of annoying that the Info program can work with this control, but AutoIt itself can't.

Does anyone have any alternatives to GUICtrlRead() that might be able to read these text and checkbox controls. Code I'm using is below:

WinActivate("Setup", "")
$FullEmailAddress = GUICtrlRead("TEdit3")
MsgBox(0, "Debug", $FullEmailAddress)

Thanks.

Share this post


Link to post
Share on other sites
Paulie

What program is it exactly?

Outlook? ThunderBird?

Edited by Paulie

Share this post


Link to post
Share on other sites
SmOke_N

I'm trying to automate a program that is being stubborn. Autoit3Info can see the controls, give me a classname, ID and even the text of the control, but GUICtrlRead() always returns a 0. It's kind of annoying that the Info program can work with this control, but AutoIt itself can't.

Does anyone have any alternatives to GUICtrlRead() that might be able to read these text and checkbox controls. Code I'm using is below:

WinActivate("Setup", "")
$FullEmailAddress = GUICtrlRead("TEdit3")
MsgBox(0, "Debug", $FullEmailAddress)

Thanks.

GUICtrlRead() is intended for native AutoIt GUI controls.

Might try looking at Control* functions, particularly: ControlGetText/ControlCommand

Edited by SmOke_N

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
Dave in PNG

Boy, do I feel silly. ;-) That works great. The application is called UUPlus and it's written in Delphi.

Thanks.

Dave

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  

×