Sign in to follow this  
Followers 0
mort

GUICtrlRead does not work although handle is available

2 posts in this topic

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

Share this post


Link to post
Share on other sites



Hi,

just found the solution myself: the key is to use ControlGetText since the GUICtrl functions are for use with AutoIt generated Gui only.

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