mort Posted February 8, 2010 Share Posted February 8, 2010 Hi all, first of all: I really like AutoIt! However, I got a little problem when trying to read data from the Gui using the following snippet: $handle = ControlGetHandle("[CLASS:TMainForm]", "", "[CLASS:TStaticText; INSTANCE:1]") $var = GUICtrlRead($handle, 1) Obtaining the handle for the control works, but at the end of the snippet, war will be 0! What am I doing wrong here? The AutoIt window info app does show the correct values! Thanks, mort Link to comment Share on other sites More sharing options...
mort Posted February 8, 2010 Author Share Posted February 8, 2010 Hi, just found the solution myself: the key is to use ControlGetText since the GUICtrl functions are for use with AutoIt generated Gui only. 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