Dave in PNG Posted February 4, 2007 Share Posted February 4, 2007 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. Link to comment Share on other sites More sharing options...
Paulie Posted February 4, 2007 Share Posted February 4, 2007 (edited) What program is it exactly? Outlook? ThunderBird? Edited February 4, 2007 by Paulie Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 4, 2007 Moderators Share Posted February 4, 2007 (edited) 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 February 4, 2007 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. Link to comment Share on other sites More sharing options...
Dave in PNG Posted February 4, 2007 Author Share Posted February 4, 2007 Boy, do I feel silly. ;-) That works great. The application is called UUPlus and it's written in Delphi. Thanks. Dave Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now